My IDE complains the usage of value like in the below YUI statement is deprecated.. it works, still, what is the proper usage.
var idValue= document.getElementById('id').value;
thanks..
Babu
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s a perfectly valid statement, not sure what your IDE is having a problem with here. Various libraries have shortcuts for this (syntax shortcuts, not performance shortcuts), but none of that prevents the core JavaScript functionality from working, it’s 100% valid.
I guess it’s expecting the YUI style:
…but either method works, use whichever you want. I would prefer the shorter core javascript syntax here.