dear all, i need to combine two different result in one script. The problem is like this:
if #edit clicked -> show dialog -> click button #ok inside dialog, then do function:
if($('#user').val() !== "admin" || $('#password').val() !== "qaubuntu") {
alert('Invalid login');
return false;
} else {
$('#dialog').dialog('close');
$('#tabs').show();
$('#editdata').show();
return false;
}
if #del clicked -> show dialog -> click button #ok inside dialog, then do function:
if($('#user').val() !== "admin" || $('#password').val() !== "qaubuntu") {
alert('Invalid login');
return false;
} else {
$('#dialog').dialog('close');
$('#tabs').show();
$('#deletedata').show();
return false;
}
can you show me how do i do that?