I’m using this to capture events happing on a form.
$( '.my-form input[type=checkbox]' ).click( function() {
var CurrectForm=$(this).parents('.my-form:first');
$.post(
'go.php',
CurrectForm.serialize(),
function( response ) {
CurrectForm.find('#form-response').html( response );
}
);
} );
$("select").change( function() {
var CurrectForm=$(this).parents('.my:first');
$.post(
'go.php',
CurrectForm.serialize(),
function( response ) {
CurrectForm.find('#form').html( response );
}
);
} );
Any time a checkbox is clicked or a dropdown changed, the values are passed to go.php and the MySQL DB is updated.
Is there any way I can present a notification on screen says ‘successfully updated’ ?
I’ve been looking at :http://akquinet.github.com/jquery-toastmessage-plugin/demo/demo.html
and it does do what I want.
But do I add it to my main page or go.php and how ?
Thanks 🙂
I’ve got this working by calling the notification function after
This is now working as I want 🙂