Click here to Skip to main content
15,921,959 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have added a radio button in grid view
then added some attributes to the radio button
and now am trying to access those attributes using java script

code in IE8
Document.getElementbyid(objID).parentNode.srno

which is not working in Firefox


<input id="gvEstablishment_ctl02_rdoEdit" type="radio" name="gvEstablishment$ctl02$rdoEdit" value="rdoEdit" önclick="javascript:return CheckOnlyOne(this.id);" />




please help...

only checkbox and radio button have such prob
Posted
Updated 8-Jan-13 6:48am
v3
Comments
Sergey Alexandrovich Kryukov 7-Jan-13 2:36am    
Not true.
—SA
Tharaka MTR 7-Jan-13 5:29am    
Please give us your complete code sample.

Wrong statement. It does work, if you mean document.getElementById. What you have written should not work anywhere. The language is case-sensitive. Please see:
http://www.w3schools.com/js/js_statements.asp[^].

—SA
 
Share this answer
 
document.getElementById(objId).parentNode.attributes["SrNo"].value;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900