摘要:
jquery-json:https://code.google.com/p/jquery-json/var thing ={plugin:'jquery-json', version:2.3};var encoded = $.toJSON( thing );// '{"plugin":"jquery-json","version":2.3}'var name = $.evalJSON( encoded ).plugin;// "jquery-json"var version = $. 阅读全文
摘要:
一、获取选择的值$("#select_id").find("option:selected").text()$("#select_id").val()二、选中1. $("#select_id ").get(0).selectedIndex=1;//设置Select索引值为1的项选中2. $("#select_id ").val(4); //设置Select的Value值为4的项选中3. $("#select_id option[text='jQuery']") 阅读全文