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

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World