nayanjyotionline

Forum Replies Created

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • in reply to: Grid scrolls to top after selecting a cell #94412
    nayanjyotionline
    Participant

    I try to validate a simple Form but the Jquery Validation Plugin not woking when I use only Button not The Submit Button.
    I can not use the Submit button there Because If I use submit Button After Submitting the form It take the Action and goes to Default page while my current form is comes from Ajax. I am very new to Jquery. Please Help its Urgent…
    I am giving the files here.
    index.html

    Name
    E Mail

    Now the validation.js file

    function save(){

    $(“#form_sub”).click(function(){
    $(“#contact_form”).validate({
    'rules':{
    'name':{
    'required':true,
    'minlength':5
    },
    'email':{
    'required':true,
    'email':true
    }
    }
    })
    }

    Everything works fine when we use input type=”submit”…
    But it not working when we use input type=”button”

    Any Idea how can Fix this?
    I am new to Jquery … Please Help

Viewing 1 replies (of 1 total)

Stay connected with us in your favorite flavor!