Gurpartap Singh
public javascript v1 · immutableif(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); } }); });}