[jQuery] [validate] jQuery validate but only when no "value" parameter set

[jQuery] [validate] jQuery validate but only when no "value" parameter set


I'm working on a site and using jQuery Validate on the forms. Everything
works great when there is no "value" parameter set on the form input. For my
CMS, I can specify variables which remembers a users information on comment
forms. You can see them below where I have value="{name}" on the name input
field.
Also, on my "comment" input field, I need the {comment} variable
(proprietary to my CMS) to make the actual comment form record the comment.
With this variable in place, the validation doesn't work like it's intended
(I don't think).
The problem is that generally if you enter text in one of the required
fields, click in another field, and then erase what you had entered in the
first field, the "required" message will pop up. With the value parameters
in place in my form, this behavior does not happen. If I enter text, change
fields, erase the text, I get not pop up required message. The form DOES
work and correctly pops up the "required" messages when I click submit with
no text in the required fields, so it's not a huge issue, just didn't know
if someone else had ever seen this behavior before?
My form code is below. Thanks.
Here is my form code:
        
        <form id="comment_form">
            <fieldset>
                <div class="formField">
                    <div class="formLabel">
                        <label for="name">Your Name: *</label>
                    </div>
                    
                    <div class="formInput">
                        <input type="text" id="name" name="name" value="{name}" size="50">
                    </div>
                </div>
                
                <div class="formField">
                    <div class="formLabel">
                        <label for="email">Your Email: *</label>
                    </div>
                    
                    <div class="formInput">
                        <input type="text" id="email" name="email" value="{email}" size="50">
                        

Email required but never shared


                    </div>
                </div>
                
                <div class="formField">
                    <div class="formLabel">
                        <label for="url">URL:</label>
                    </div>
                    
                    <div class="formInput">
                        <input type="text" id="url" name="url" value="{url}" size="50">
                    </div>
                </div>
                
                <div class="formField">
                    <div class="formLabel">
                        <label for="comments">Comments: *</label>
                    </div>
                    
                    <div class="formInput">
                        <textarea id="comment" name="comment">{comment}</textarea>
                    </div>
                </div>
                <div class="formField">
                    <div class="formInput">
                        

Remember my Info? <input type="checkbox" class="checkbox"
name="save_info" value="yes" {save_info} />


                        

Notify me when someone replies?<input type="checkbox"
class="checkbox" name="notify_me" value="yes" {notify_me} />


                        <button name="submit" id="submit" type="submit">Submit</button>
                    </div>
                </div>
            </fieldset>
        </form>
--
View this message in context: http://www.nabble.com/-validate--jQuery-validate-but-only-when-no-%22value%22-parameter-set-tp21155038s27240p21155038.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.