jQuery获取选择标签的value或者文本
获取value:
$("#select1").val();<pre name="code" class="html">$("#select").change(function(){
var va=$(this).val();
});
获取文本内容就是将.val();替换成..text();
jQuery post表单+动态修改链接
表单form为:
<form id="login_entrance" method="post" action="" target="_blank">
<span style="white-space:pre"></span><pre name="code" class="html"><input type="text" name="username"/>
<input type="password" name="password"/>
</form>
另外需要一个button来触发jQuery