wwfc_barmy_army Posted April 24, 2010 Share Posted April 24, 2010 Applying CSS to fields with name tag instead of ID or Class - Is this possible? It's hard to explain why but I can't really change the text field html to include an ID or class, so can you style from using the 'name=' value? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/199608-applying-css-to-fields-with-name-tag-instead-of-id-or-class/ Share on other sites More sharing options...
F1Fan Posted April 24, 2010 Share Posted April 24, 2010 I don't think this is possible with just CSS, but you could do it with JavaScript: document.formName.elementName.className = 'nameOfClass'; Quote Link to comment https://forums.phpfreaks.com/topic/199608-applying-css-to-fields-with-name-tag-instead-of-id-or-class/#findComment-1047757 Share on other sites More sharing options...
wwfc_barmy_army Posted April 24, 2010 Author Share Posted April 24, 2010 Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/199608-applying-css-to-fields-with-name-tag-instead-of-id-or-class/#findComment-1047759 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.