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());
});

```