How to display conformation text using jquery

Posted by kumar on Stack Overflow See other posts from Stack Overflow or by kumar
Published on 2010-05-26T19:11:37Z Indexed on 2010/05/26 19:21 UTC
Read the original article Hit count: 217

Filed under:

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?

© Stack Overflow or respective owner

Related posts about jQuery