The CreatorCon Call for Content is officially open! Get started here.

Use of gel Function

neetusingh
Giga Guru

Hi All,

Please let me know the basic purpose of gel function. Where we can use it?

Thanks!!

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

'gel' is simply a shortcut for 'document.getElementById', which is standard javascript. You would use it in client scripts mostly. Search the web for more info. Here's one example.

http://www.w3schools.com/jsref/met_doc_getelementbyid.asp


View solution in original post

4 REPLIES 4

Mark Stanger
Giga Sage

'gel' is simply a shortcut for 'document.getElementById', which is standard javascript. You would use it in client scripts mostly. Search the web for more info. Here's one example.

http://www.w3schools.com/jsref/met_doc_getelementbyid.asp


neetusingh
Giga Guru

Thanks Mark for your prompt response !!

I would still require some more clarification regarding what is the basic difference between 'gel' and 'document.getElementById' and what all 'document.getElementById' can do and gel can't and vice-versa.


There is no difference. They're exactly the same except for the name.


neetusingh
Giga Guru

Thanks Mark!!