Log in

View Full Version : form



silver163
10-24-2009, 04:04 AM
Ok so I got a form from this site: http://bassistance.de/jquery-plugins/jquery-plugin-validation/

and I looked at their example and it had the class set for one called "required" for their textbox.


<textarea id="ccomment" name="comment" class="required"></textarea>

but mine which is tied to css is set with another class:


<input name="from" type="text" value="" class="input-textarea"/>

as I understand their's is referenced in javascript validator file but how can I integrate this validation and not destroy my css? please help

Here is my css:

http://pastebin.com/m3c019dbc

traq
10-24-2009, 05:43 AM
an element can have two classes. I haven't tested this with your script, but it ought to work just fine.

try: class="input-textarea required"

I assume the js is using the class to recognize the field as "required", and not to actually apply any css. If it's well-written, the javascript shouldn't affect the css while it's manipulating the class attributes.

silver163
10-24-2009, 10:12 PM
thanks i will try this....hopefully it works.