1.

Explain Focus() Method In Jquery?

Answer»

The focus() method attaches an event handler FUNCTION to an HTML form FIELD. The function is executed when the form field gets focus:

Example: $("input").focus(function(){ $(this).CSS("background-color","#cccccc"); });

The focus() method attaches an event handler function to an HTML form field. The function is executed when the form field gets focus:

Example: $("input").focus(function(){ $(this).css("background-color","#cccccc"); });



Discussion

No Comment Found