How to display conformation text using jquery
- by kumar
I have showresponse funtion somehting like this..
function showResponse(responseText, statusText, xhr, $form) {
if (responseText[0].substring(0, 16) != "System.Exception") {
$('#error-msg-ID').html('<strong>Update successful.</strong>');
} else {
$('#error-msg-ID').html('<strong>Update failed.</strong> ' + responseText[0].substring(0, 48));
}
$('#error-msg-ID').removeClass('hide');
$('#gui-stat-').html(responseText[1]);
}
$('#exc-').ajaxForm({
target: '#error-msg-ID',
beforeSubmit: validate_excpt,
success: showResponse,
dataType: 'json'
});
Div tag is..
<div id="#error-msg-ID">
</div>
After update successfull I am not able to show Updatesuccessful mesage on divtag?
do i am missing something?