jquery - Add class but change specific width for a single item -


i'm adding class text field using jquery following code:

$('[name="albdesign_wc_donation_from_single_page"]').addclass( "input-text" ); 

the width of class 100% specific object i'd specify width keep remaining css. how can this?

you add class handle or set css using .width() or .css():

$('[name="albdesign_wc_donation_from_single_page"]').addclass( "input-text" ).css('width', '100px');  $('[name="albdesign_wc_donation_from_single_page"]').addclass( "input-text" ).width(100); 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -