All pastes #613242 Raw Edit

Gurpartap Singh

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