9.08.2012

$get vs $find in jQuery

Difference between $get and $find in jQuery


S.No
$get
$find
1
Shortcut Method:
$get is the shortcut method for document.getElementById.
Shortcut Method:
$find is the shortcut method for “Sys.Application.findComponent(id, parent)”.
2
Signature used:
Signature of $get is
$get(id, element)
Signature used:
Signature of $ind is
$find(id, parent)
3
Suitable Controls:
When we want to retrieve normal ASP.NET controls like textbox, checkbox, button etc we can use $get.
Suitable Controls:
Controls which are extender controls cannot be retrieved through $get. So, Extender controls like ValidatorCalloutExtender, AutoCompleteExtender etc can be retrieved using $find.

No comments:

Post a Comment