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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -