Jquery获取Label,TextBox的值
Jquery获取Label,TextBox的值
操作方法
- 01获取任意input的值 msg=$("#msg").attr("value"); date=$("#date").attr("value"); watchs=$("#watchs").attr("value"); 
- 02获取Label的值var lblValue = $("#Label1").text(); 
- 03.获取TextBox的值var txtValue = $("#TextBoxId").attr("value"); 
- 04获取DropDownList选中的值var checkText = $("#ddlID ").find("option:selected").text(); //获取DropDownList选择的Text 
 赞 (0)
                        