How to call click
function on input tag when I press in to the input field or change the value in the field like.
jquery('input').click();
I can't figure it out how to do I have checked other places?
How to call click
function on input tag when I press in to the input field or change the value in the field like.
jquery('input').click();
I can't figure it out how to do I have checked other places?
use the
jquery('input').keypress(function (){'body'})
or
jquery('input').keydown(function(){ 'body'; })
function it will trigger when you will press any key.
I would use 'document' .on as it is a bit more reliable then the .click() although producing the same end result.
jQuery(document).on('click','input', function(){
// do something
});