Results 1 to 3 of 3

Thread: form

  1. #1
    Join Date
    Mar 2009
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default form

    Ok so I got a form from this site: http://bassistance.de/jquery-plugins...in-validation/

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

    Code:
    <textarea id="ccomment" name="comment" class="required"></textarea>
    but mine which is tied to css is set with another class:

    Code:
    <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

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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.

  3. #3
    Join Date
    Mar 2009
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks i will try this....hopefully it works.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •