$get is used to get a reference to a DOM element. It is an alias for Sys.UI.DomElement.getElementById:
var myLabel = $get(‘myLabel’);
$find is an alias for Sys.Application.findComponent() and it’s used to get a reference to a particular component, given its id.
How to get DOM element using $find
var lnkAddNew = $find("CntrlID"); if(lnkAddNew) { lnkAddNew.get_element().style.display = ''; }
Leave a Reply