How to pass a value in jQuery -
i want pass error message. how do , need change?
success: function(data) { var div = $('<div>').attr('id', 'message').html(data.message); if (data.success == 0) { $.modaldialog.error('the operation failed.'); ...
i want replace div
error message comes success function. still need id though think because toggles between success , error block.
'the operation failed.' should replaced error message contained in 'data.message'.
"'the operation failed.' should replaced error message contained in 'data.message'"
success: function(data){ var div = $('<div>').attr('id', 'message').html(data.message); if(data.success == 0){ $.modaldialog.error(data.message);
Comments
Post a Comment