2013年9月23日

浅谈jquery关于select框的取值和赋值

摘要: jQuery("#select_id").change(function(){}); // 1.为Select添加事件,当选择其中一项时触发 var checkValue = jQuery("#select_id").val(); // 2.获取Select选中项的Value var checkText = jQuery("#select_id :selected").text(); // 3.获取Select选中项的Text var checkIndex = jQuery("#select_id").attr(& 阅读全文

posted @ 2013-09-23 17:03 小V_chen 阅读(905) 评论(0) 推荐(1) 编辑

导航