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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.