Treehouse: Grow your CSS skills. Land your dream job.

How to apply validation condition in jQuery validate

  • # April 15, 2010 at 6:32 am

    I am using jquery validate.js file and it works fine and all the validation works fine. In one condition i want to apply some logical condition to validate like
    I have county select box, state select box and one state textbox
    If country selection value is "Other" then validation will apply on textbox not on state select box
    and if the country value in … then validation will applied on state select box not on state textbox

    how to do this stuff… :cry:

    i am show/hide the state textbox and state select box on selection of the country select box.

    # April 19, 2010 at 5:11 am

    Well according to me as a web developer the most enjoyable part is validation part. I was making one project. During one of my projects I found that that jquery-validate doesn’t play very well with Internet Explorer 6. So you have to choose the best of your browser. well you have not said that on which explorer you are using still i will give it a try.

    # May 15, 2010 at 9:22 am

    it is solved when i am using
    <select class="required">
    <option value="">Select</option>

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.