[jquery-ui] Submit prevented form

2010-01-13 Thread Cyril Lopez
Hi, In a form, there are 2 inputs (type = submit). I prevented the submit in order to use a dialog. For example, on the input 1 click event : $('#mySubmit1').click( function (e) { e.preventDefault(); // prevent the submit action [...] $dialog.dialog(

Re: [jquery-ui] Submit prevented form

2010-01-13 Thread Balázs Suhajda
I would suggest using a hidden input or 2. Using jquery you can easily set them to be disabled and then they will not submit. input name=somename type=hidden value=somevalue/ then you could use $('[name=somename]').attr('disabled','') to enable $('[name=somename]').attr('disabled','disabled') to

Re: [jquery-ui] Submit prevented form

2010-01-13 Thread Cyril Lopez
2010/1/13 Balázs Suhajda suhaj...@gmail.com I would suggest using a hidden input or 2. Using jquery you can easily set them to be disabled and then they will not submit. Thanks for the tip Balázs ! Cyril input name=somename type=hidden value=somevalue/ then you could use