in javascript how can I transform this :
var texte=document.getElementById("Text1").value;
with a $get ? I've tried var texte=$get("Text1","value"); but it doesn't work ?
I'm on Vista with VS 2008 RTM
Thanks
Try var texte=$get("Text1").value, basically $get() is a shortcut to document.getElementById()
Hope this helps,
Elias.
thanks it works, I was waiting for intellisense, but $get(tytu). there is no intellisense.
Keep in mind that $get is exactly the same as getElementById. They both return a reference to the supplied DOM element. $get is just a shortcut, to save typing and improve readability.
If you have existing code using getElementById, you don't have to convert it to $get unless you want to.
No comments:
Post a Comment