I have a block that is firstly hidden and if clicked it is shown. How can I change it to be shown from the start and if clicked to be hidden? Really low on js and I require help.

initBusinessHours:function(){a(".fieldset-job_hours label").click(function(b){b.preventDefault(),a(this).parent().toggleClass("open").end().next().toggle()})},

any help will be appreciated, Thanks

Read more here: A js function needs reversed


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: