Jquery implements the input box to input the trigger event code in real time

  • 2020-03-30 01:29:46
  • OfStack

 
<input id="productName" name="productName" class="wid10" type="text" value="" /> 

 
//Bind commodity name lenovo
$('#productName').bind('input propertychange', function() {searchProductClassbyName();}); 

 
searchProductClassbyName  Is the method invoked after the trigger;  

Implementation effect:
< img SRC = "border = 0 / / files.jb51.net/file_images/article/201401/201401281649252.gif? 2014028164950 ">

Related articles: