[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
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
}