All pastes #613236 Raw Edit

Gurpartap Singh

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