tags:

views:

45

answers:

2

I'm trying to style up a form within the Wishlist Member plugin in Wordpress and there isn't a template where I can physically go into and add classes, id's, etc. So I was wondering if there was a way to style up an <input type="submit"> with no class or id without affecting the <input type="text"> fields using javascript maybe. Thanks.

+2  A: 

This should do the trick

input[type=submit] {
    yourCss
}
Ollie Edwards
+3  A: 

You can add style with CSS even if there is no class/id. The following selects all input elements with attribute type="submit":

input[type="submit"]{
   /* style */
}

The above is very generic, it's better to be more exclusiver. So include some of its parents , preferable those with an ID/class:

div#someID form input[type="submit"]{
   /* style */
}

(assuming a parent <div id="someID">)

Lekensteyn
In addition, the form will probably have a name or id, so you can add form#id or form[name="name"] in front of that declaration if you want to limit your changes to that particular form.
Jonas Wagner
I've never heard of Wishlist Member plugin, nor have I seen an example of it. So I cannot confirm whether the form has an ID or not.
Lekensteyn