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

[eluser]vitoco[/eluser]
I've found a not very elegant solution :

1.- make a hidden input name "action_input"
2.- add event handlers to the buttons

Code:
$('#button_delete,#button_other_case').click( function(e)
    {
        $('#action_input').attr('value',$(this).attr('id'));
    });
3.- in the controller, ask for the value of $_POST['action_input']

this works cause the "click" event occurs before de submition of the form

Saludos


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