HI,
I have a radio button list item. I want to add a new item to it using javascript. Could u please help mee.
My radio button list already consists of three items names r1, r2,r3 which is an asp control. But now u want to add a new item using javascript when i click a button which is below to that..
Any answers are appreciated.
thanks.. MunnaKanna

You can use document.getElementById() method to retrieve the RadioButtonList DOM and then create a DOM using document.createElement() , set DOM attributes and append it to the retrieved DOM (radiobuttonlist).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.