A js function needs reversed

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

Leave a Reply

Your email address will not be published. Required fields are marked *