<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[金易火华 的 部落格]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/mepal</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; mepal]]></copyright><item><title><![CDATA[jq select操作全集]]></title><link>https://blog.youkuaiyun.com/mepal/article/details/41381181</link><guid>https://blog.youkuaiyun.com/mepal/article/details/41381181</guid><author>mepal</author><pubDate>Sat, 22 Nov 2014 13:54:30 +0800</pubDate><description><![CDATA[添加option

$("#ID option").each(function(){
if($(this).val()==111){
$(this).remove();
}
});


移除option

$("UPS Ground").appendTo($("#ID"));


取得下拉选单的选取值

$("#testSelect option:selected"]]></description><category></category></item><item><title><![CDATA[JQ操作select项]]></title><link>https://blog.youkuaiyun.com/mepal/article/details/41381079</link><guid>https://blog.youkuaiyun.com/mepal/article/details/41381079</guid><author>mepal</author><pubDate>Sat, 22 Nov 2014 13:44:34 +0800</pubDate><description><![CDATA[jQuery获取Select元素，并选择的Text和Value: 

1. $("#select_id").change(function(){//code...});   //为Select添加事件，当选择其中一项时触发 
2. var checkText=$("#select_id").find("option:selected").text();  //获取Select选择的Text ]]></description><category></category></item><item><title><![CDATA[JQuery防止退格键网页后退]]></title><link>https://blog.youkuaiyun.com/mepal/article/details/38412573</link><guid>https://blog.youkuaiyun.com/mepal/article/details/38412573</guid><author>mepal</author><pubDate>Thu, 07 Aug 2014 08:41:10 +0800</pubDate><description><![CDATA[JQuery防止退格键网页后退

$(document).keydown(function (e) {
    var doPrevent;
    if (e.keyCode == 8) {
        var d = e.srcElement || e.target;
        if (d.tagName.toUpperCase() == 'INPUT' || d.tagName.t]]></description><category></category></item></channel></rss>