页面代码如下<div id="div1">
<input name="1" type="text" />
<input name="2" type="text" />
<input name="3" type="text" />
<input name="4" type="text" />
<input name="5" type="text" />
<input name="6" type="text" />
<input name="7" type="text" />
<input name="8" type="text" />
<input name="9" type="text" />
<input name="10" type="text" />
</div>
请问$.post()如何将这段div中的input post到后台。用@.ajax()实现也行。*div不能放到form中,按钮也不是submit,并且input是动态生成数量不固定请高手指教。jquery post
<input name="1" type="text" />
<input name="2" type="text" />
<input name="3" type="text" />
<input name="4" type="text" />
<input name="5" type="text" />
<input name="6" type="text" />
<input name="7" type="text" />
<input name="8" type="text" />
<input name="9" type="text" />
<input name="10" type="text" />
</div>
请问$.post()如何将这段div中的input post到后台。用@.ajax()实现也行。*div不能放到form中,按钮也不是submit,并且input是动态生成数量不固定请高手指教。jquery post
$('#div').find(':input')
$.post("test.php", strJson );
$.post("test.php", strJson );
感谢。我对jquery了解的太浅了。