<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> 程式碼如下><br> </div>//綁定商品名稱聯想<br>$('#productName').bind('input propertychange', function() {searchProductClassbyName();}); <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> 程式碼如下:<br> </div> <br>searchProductClass 為觸發後呼叫的方法<br><img src="http://files.jb51.net/file_images/article/201401/201401281649252.gif?2014028164950" alt="jquery實作input輸入框即時輸入觸發事件碼_jquery" > searchProductClass 為觸發後呼叫的方法 實現效果: