jonnystudent Posted March 14, 2012 Share Posted March 14, 2012 Hi Guys, for some reason, my Dropdown box isn't working when I enter it into my webpage. I think it is a CSS issue hence me posting here. You can view my script here. http://jsfiddle.net/jonnystudent/kmqx7/ I think the issue lies in the fact that this dropdown box is wrapped within two divs. So there is body div id = top-header> div id = header> div id = currency-logout> <!-- Start of my Currency dropdown --> Any help would be greatly appreciated. Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/258892-my-dropdown-doesnt-work-when-i-enter-it-in-my-webpage/ Share on other sites More sharing options...
trq Posted March 14, 2012 Share Posted March 14, 2012 What exactly would you classify as a drop down box? What is it meant to look like? Quote Link to comment https://forums.phpfreaks.com/topic/258892-my-dropdown-doesnt-work-when-i-enter-it-in-my-webpage/#findComment-1327207 Share on other sites More sharing options...
AyKay47 Posted March 14, 2012 Share Posted March 14, 2012 The dropdown appears to be working as you have coded it in jsfiddle, unless this is not the functionality that you are looking for? Quote Link to comment https://forums.phpfreaks.com/topic/258892-my-dropdown-doesnt-work-when-i-enter-it-in-my-webpage/#findComment-1327215 Share on other sites More sharing options...
jonnystudent Posted March 14, 2012 Author Share Posted March 14, 2012 Hi Thorpe thanks for the reply, drop down list is probably the better phrase for it. It's been done in CSS and I use Javascript to drop it. If you click on the fiddle you'll see it. The issue is when I put it in my web page, the dropdown doesn't work anymore. I'm wondering if it's because of the CSS. Would I need to wrap any of the currency id's in the top-header and header id's? Quote Link to comment https://forums.phpfreaks.com/topic/258892-my-dropdown-doesnt-work-when-i-enter-it-in-my-webpage/#findComment-1327218 Share on other sites More sharing options...
trq Posted March 14, 2012 Share Posted March 14, 2012 You might want to post a link to your site if you can. Quote Link to comment https://forums.phpfreaks.com/topic/258892-my-dropdown-doesnt-work-when-i-enter-it-in-my-webpage/#findComment-1327219 Share on other sites More sharing options...
jonnystudent Posted March 14, 2012 Author Share Posted March 14, 2012 I can't unfortunately. I'm working locally. Quote Link to comment https://forums.phpfreaks.com/topic/258892-my-dropdown-doesnt-work-when-i-enter-it-in-my-webpage/#findComment-1327220 Share on other sites More sharing options...
AyKay47 Posted March 14, 2012 Share Posted March 14, 2012 Without seeing the environment that this code is in, it will be hard to help. However, if you can expand on what exactly "doesn't work", maybe we can help further. Quote Link to comment https://forums.phpfreaks.com/topic/258892-my-dropdown-doesnt-work-when-i-enter-it-in-my-webpage/#findComment-1327224 Share on other sites More sharing options...
jonnystudent Posted March 14, 2012 Author Share Posted March 14, 2012 Thanks guys. Very simple fix. There was a problem with the last line of the javascript. An offending ';'. All sorted. Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/258892-my-dropdown-doesnt-work-when-i-enter-it-in-my-webpage/#findComment-1327287 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.