jQuery/Ajax success function not rendering html -


i have div <div id="message"></div> , trying add contents div using ajax success.

this how ajax code looks like:

    var data = $("form#password_forgotten").serialize();      $.ajax({         type: "post",         url: "./includes/process_password.php",         data: data,         cache: false,          success: function (response) {             console.log(response);             $('#message').html(response);         }                }); 

but can not populate #message div ajax response. ajax coding working me , can console.

<div class='alert alert-danger alert-dismissible' role='alert'> <strong>oops!</strong> email address not recognised. please try another. </div> 

can tell me whats wrong this?

thank you.

as per conversation in comments

now found #message div populating, hiding page. - oops! email address not recognised. please try another. ,

summarizing answer as

after populating html add $('#message').show()


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -