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



<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: