Welcome Guest, Not a member yet? Register   Sign In
Jquery Confirm
#1

[eluser]Wonder Woman[/eluser]
I have got a delete confirm set up on my site but I can't get my controller to determine what button was clicked because I have had to change my submit to buttons for the jquery to work so the controller can't pick up which button was clicked but it could when it was a submit Undecided

If you could help me I would be most grateful, thanks.

View:

Code:
form_submit('submit', 'Delete', 'class="confirm_delete"')

Javascript (there is more to this but this is the main part):

Code:
$('.yes').bind('click', function(){
   $('form#entries').submit();
});

Controller:
Code:
if($this->input->post('submit') == 'Delete') {
   // do the delete
}


Messages In This Thread
Jquery Confirm - by El Forum - 01-31-2011, 10:15 AM
Jquery Confirm - by El Forum - 02-01-2011, 11:05 AM
Jquery Confirm - by El Forum - 02-05-2011, 09:18 PM
Jquery Confirm - by El Forum - 02-07-2011, 12:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB