<div class="codetitle"> <span><a style="CURSOR: pointer" data="50660" class="copybut" id="copybut50660" onclick="doCopy('code50660')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code50660"> <br><input id="productName" name="productName" class="wid10" type="text" value=""> <br> </div> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="42374" class="copybut" id="copybut42374" onclick="doCopy('code42374')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code42374"> <br>//绑定商品名称联想 <br>$('#productName').bind('input propertychange', function() {searchProductClassbyName();}); <br> </div> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="20348" class="copybut" id="copybut20348" onclick="doCopy('code20348')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code20348"> <br>searchProductClassbyName 为触发后调用的方法; <br> </div> <br>实现效果: <br><img src="http://files.jb51.net/file_images/article/201401/201401281649252.gif?2014028164950" alt="jquery实现input输入框实时输入触发事件代码_jquery" >