How to add keyup event for dynamically added textfield.i am developing web application in drupal.when i tried to use “live”,Menu’s are not working
$('input[id$="-code"], input[id$="-case"], input[id$="-vehicle-no"]')
.live('keyup', function(e){
$(this).val($(this).val().toUpperCase());
});
To save the mess in the code add a class to the input field you are adding dynamically so that it will be easy for you. Anyways using live will work. Check out this fiddle
http://jsfiddle.net/QugQw/1/