Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to add a radio button and a text field dynamically with their corresponding css when a button clicks. I do find many methods to add elements dynamically but the css is not working. please suggest some links
Posted
Comments
Sergey Alexandrovich Kryukov 12-Jul-13 1:03am    
"CSS is not working" is not informative. There are too many ways to screw up things. Due to hot days and vacation season, my access to your hard drive is somewhat limited. :-)
—SA

1 solution

Please see my comment to the question. Quite apparently, no description of the problem => no answer.

However, I can give you an advice: the simpler your manipulations on the HTML DOM elements, the less likely the bugs. To simplify it greatly, you can use jQuery. Please see the jQuery methods in Manipulation category:
http://api.jquery.com/category/manipulation/[^],
http://api.jquery.com/category/manipulation/dom-insertion-around/[^],
http://api.jquery.com/category/manipulation/dom-insertion-inside/[^],
http://api.jquery.com/category/manipulation/dom-insertion-outside/[^].

If you need to learn jQuery (highly recommended), please see:
http://en.wikipedia.org/wiki/JQuery[^],
http://jquery.com/[^],
http://learn.jquery.com/[^],
http://learn.jquery.com/using-jquery-core/[^],
http://learn.jquery.com/about-jquery/how-jquery-works/[^] (start from here).

Good luck,
—SA
 
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