Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery .mousedown on input

0 votes
12 views
added Sep 20 in jQuery by LC Marshal Lieutenant (13,770 points)
var icNumber = $('input#edit-profile-basic-field-ic-und-0-value');

$(icNumber).val('e.g 888888888888').attr('maxlength', 12);
$(icNumber).mousedown(function(){
    $(this).val('');
    console.log( 'pressed');
});

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...