HTML Question

Replacing a div with a command

i've got a site with a lot of phone models, but the code is originally from another part of the site, where the mobiles are only shown when you click on the box, but for this part of the site, I want the mobiles to be shown at anytime, so how do i make this div

<div class="submit_filter ans_div" style="display: table;"></div>'


into something that just shows without a click?

The site url are www.findaphone.dk/mobiler

And as you see, right now there is a big box at the top of the site you have to click on.

Thanks in advance!!

Answer

The JavaScript for this click event is at line 620 of your source code. CTRL+F to find it, it looks like this:

$(document).on('click','.submit_filter',function () {

Right now, the line is waiting for a click event on that large button (.submit_filter) before executing the code. Replace the line above with this, and the code in that function will trigger on document ready (when the page loads):

$(document).ready(function () {