Build a Wikipedia Viewer: why update page

Hi everyone!
I have stuck.
In the console, I get a json object, but any changes doesn’t add to html .
I think, this is because my page update after click button “Find”.
How to fix it? Try Ajax?
I will be grateful for the help, the link to the project:


You need to prevent the form from submitting. When the form submits it refreshes the page.


$('input[type="submit"]').click(function() {
    var text = $('input[type="search"]').val(),


$('input[type="submit"]').click(function(event) { // note the event argument added
    var text = $('input[type="search"]').val(),

it `s Magic. Thank you!
I trying so much variant…
I’ll go read the documentation for event.preventDefault ();

You could avoided having to use the preventDefault() if you used a div instead of a form element.