Jump to content

Expand Menu in JS


darkfreaks

Recommended Posts

okay so i made it so the cities are collapsed until you click the country then they expand but right now they wont expand i have  the onclick function in my links since i cant define it im my href=""

 

so i got onclick='javascript:poptoggle('block01');'

 

 

but it gives me error on page and wont expand the div

 

Link to comment
https://forums.phpfreaks.com/topic/70381-expand-menu-in-js/
Share on other sites

well how about posting your code and corresponding html...

 

first i would seriously look into resarching event listners inline js is something you should try and avoid at all costs.

 

basically though all you need to do is change the style.display value from block to none and vice-verse, but like i said maybe you aready no that but i cant' tell from the lack of code provided lol.

Link to comment
https://forums.phpfreaks.com/topic/70381-expand-menu-in-js/#findComment-355099
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.