Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Dynamically changing IDs?
Old 04-19-2010, 09:55 PM Dynamically changing IDs?
Madman340's Avatar
Web Designer

Posts: 571
Name: Jared
Location: Florida
Trades: 1
Here is an example: I want to have 2 different classes. One for rounded corners and one for normal corners. Let’s give them an ID of bg_round and bg_normal. How would I change the CSS ID dynamically using radio buttons or a drop-down box?
__________________

Please login or register to view this content. Registration is FREE
for cheap hosting solutions.
Use the coupon code "SINGLECENT" to pay just a single cent for the first month!
Madman340 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-19-2010, 11:00 PM Re: Dynamically changing IDs?
Novice Talker

Posts: 13
Trades: 0
I guess I want to change the class of some element (rather than chaning ID of CSS class itself of which I fail to see the point).
In this case it's a javascript question - take a look at this link - you can do it either with plain JS or in a nicer way via jQuery
__________________

Please login or register to view this content. Registration is FREE
karabas is offline
Reply With Quote
View Public Profile Visit karabas's homepage!
 
Old 04-19-2010, 11:16 PM Re: Dynamically changing IDs?
Madman340's Avatar
Web Designer

Posts: 571
Name: Jared
Location: Florida
Trades: 1
Thank you, I think I've got it now.
__________________

Please login or register to view this content. Registration is FREE
for cheap hosting solutions.
Use the coupon code "SINGLECENT" to pay just a single cent for the first month!
Madman340 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dynamically changing IDs?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.62423 seconds with 12 queries