标签:style color os io for ar cti 代码 html
序列表表格内容为字符串,用于 Ajax 请求
<p id="results"><b>Results: </b> </p> <form> <select name="single"> <option>Single</option> <option>Single2</option> </select> <select name="multiple" multiple="multiple"> <option selected="selected">Multiple</option> <option>Multiple2</option> <option selected="selected">Multiple3</option> </select><br/> <input type="checkbox" name="check" value="check1"/> check1 <input type="checkbox" name="check" value="check2" checked="checked"/> check2 <input type="radio" name="radio" value="radio1" checked="checked"/> radio1 <input type="radio" name="radio" value="radio2"/> radio2 </form>
$("#results").append( "<tt>" + $("form").serialize() + "</tt>" );
var formdata = $(‘form‘).serialize()
$.post(
‘index.php‘,
formdata,
function (data){
},
‘json‘
);
标签:style color os io for ar cti 代码 html
原文地址:http://my.oschina.net/nly/blog/306146