All pastes #613232 Raw Edit

Gurpartap Singh

public text v1 · immutable
·published 2007-07-10 21:30 UTC
rendered paste body
if(Drupal.jsEnabled) {
  $(document).ready(function() {
    var resetValue = '';
    $('#first_name').bind('click', function(event) {
      resetValue = $(this).attr('val');
      // Do the manipulation of value
      if ($(this).attr('val') == '') { $(this).attr('val', resetValue); }
      $(this).attr('val', 'changed value...');
    });
  });
}