I selected the control using the following variable
var txt = $("#text1");
Now, when I have to handle events in a text field, I need to refer to it as $ (txt), or txt will do
$(txt).keydown(function() {})
or
txt.keydown(function(){})
What is the advantage. Please explain this by taking the txt variable as context.
source
share