document.all["" + object.getAttribute("EndDate", true) + ""].value;
does work in firefox but work in IE.
what is the alternative way other than the code above to work in multiple browsers?
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.
If you want to get the element by it’s id use this form:
document.allisn’t cross browser.If you want to get an element’s attribute use:
you don’t need the
.valueproperty for that.The second parameter of
getAttributeis not a boolean, rather an integer, and is only used in rare cases (like getting an element’s href in IE). If you want case-sensitivity use 1, but true here is a bit confusing of what you want to do.