Not working, but I know the problem is in the slideUp/slideToggle thingy. Maybe because the ones that slide up are sometimes already up, causing the whole code to break or something? I know this because I have a similar code on the settings page, without the preventDefault and it's not working properbly there either. When I click on either "infol", "walll" or "contl", it just doesn't do anything.
And let my clear up. My main problem is the fact that they don't slide, not the event.preventDefault, I read your responses, they made sense and should work after I fix the other code.
Don't you have an html example? What do you mean by 'its not working'. How do you know it's not working?
Create a little test on jsfiddle and we'll be able to help you quickly/easily.
P.S. If you're using the js I added above, then the JS isn't 'breaking'. The syntax is fine. If you slideUp something that is already up, nothing will happen.
http://schart.net/profile.php?id=1 Try opening that in Mozilla, and clicking on the tabs. In chrome, the current one will slide up and the one you clicked on will slide down, while on Mozilla it won't work. I stated all of that above.
The problem with the particular jsfiddle you just posted, is that at the end of the JS code, there's another $(document).ready(function(){ that shouldn't be there.
Anyways, I actually just tested your page in Firefox 8.0.1 and.... it works just fine.
I know im going at this the wrong way which is why i am asking for some help, I am wanting my script to work so that when the contact div is down and you click anywhere else on the page the contact div will animate back up. If you have any suggestions for making it smoother that would be great too:)
Also, jQuery is loaded, it's just this part that doesn't work on Firefox or IE, it works on Safari and Chrome (webkit) though. Any suggestions?
You are calling a variable that doesn't exist.
Create a little test on jsfiddle and we'll be able to help you quickly/easily.
P.S. If you're using the js I added above, then the JS isn't 'breaking'. The syntax is fine. If you slideUp something that is already up, nothing will happen.
Try opening that in Mozilla, and clicking on the tabs. In chrome, the current one will slide up and the one you clicked on will slide down, while on Mozilla it won't work. I stated all of that above.
Open firebug, go to the console tab. Refresh the page. There should be an error, what does it say?
$(document).ready(function(){that shouldn't be there.Anyways, I actually just tested your page in Firefox 8.0.1 and.... it works just fine.
Thanks!
Here is a link for what i am trying to do