JQuery-editable-select插件文本框捕捉不到事件?

部分代码如下:


<tr>
   <td class="tdbg"><label>被抽样单位</label></td>
   <td>
       <select name="breedtypeid" class="editable-select" id="breedtypeid" style="width: 50%;">
            <option>1</option>
            <option>2</option>
            <option>3</option>
            <option>4</option>
            <option>5</option>
        </select>
   </td>
 </tr>


<script>
//或者select选择器change事件 好像都捕捉不到
$("input[name=breedtypeid]").blur(function () {
    alert(123);
      });
$(function() {
      $('.editable-select').editableSelect(
        {
          bg_iframe: true,
         // If set to true, the user has to type in an exact
          case_sensitive: false, 
         // If there are more than 10 items, display a scrollbar
          items_then_scroll: 10 
        }
      );
  });
</script>
阅读 6.4k
1 个回答

clipboard.png
jQuery那里是不是应该改成select

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题