Good all the time of the day gentlemen

There are inputs in which something is entered. There is a button (submit) by clicking on which the data is sent where necessary. Actually, the hunt is to find out how to do it, the button is not pressed, in case the inputs are not filled? Namely input'y, i.e. several and name there all the time different

  • one
    see form validation. submission = "return fn ()", where fn field validation function - zloctb
  • one
    I use the backbone for similar purposes in the following way: demo , but you can achieve a similar effect without it - Specter

1 answer 1

I have prepared a working example for you here: http://jsfiddle.net/tVkY3/2/

  • thank you so much. I will now know how to do it. eats, but I rewrote a little by myself - sergey
  • @dpetruk, but what if for each input a specific validation is needed? - Specter