if(Drupal.jsEnabled) { $(document).ready(function() { $('#first_name').bind('click', function(event) { alert($(this).attr('val')); }); }); }