Hi Guys,
I am learning Jquery, I got every thing working in jsFiddle but when I copy and paste the code into my webpage it does not work, I noticed too that in jsFiddle it works If I opened it with Google Chrome but it does not work if I opened it with FF version 11.0
Url to jsFiddle: http://jsfiddle.net/Banzay/8Zpn8/3/
Many thanks,
Youssef
PopUp Div
Moderator: General Moderators
Re: PopUp Div
Hi,what version of jquery are u using????
-
YoussefSiblini
- Forum Contributor
- Posts: 206
- Joined: Thu Jul 21, 2011 1:51 pm
Re: PopUp Div
Thank you for your reply,
how do you know that?
how do you know that?
Re: PopUp Div
Hi it is from ur jsfiddle,Is ur problem solved?
-
YoussefSiblini
- Forum Contributor
- Posts: 206
- Joined: Thu Jul 21, 2011 1:51 pm
Re: PopUp Div
Hi,
I sorted it out, what happened is if I open it with Google Chrome I need to add $(document).ready(function(){ , but If I open it with FF I need to take the $(document).ready(function(){ off.
When I add it into my webpage I thought that I will not need $(document).ready(function(){ as I am using $("#Login_PopUp_Link").click(function(){ but it only works when I I add the $(document).ready(function(){ .
Yes, thank you it is working now, I will keep the code in jFiddle for users who need help with this
Youssef
I sorted it out, what happened is if I open it with Google Chrome I need to add $(document).ready(function(){ , but If I open it with FF I need to take the $(document).ready(function(){ off.
When I add it into my webpage I thought that I will not need $(document).ready(function(){ as I am using $("#Login_PopUp_Link").click(function(){ but it only works when I I add the $(document).ready(function(){ .
Yes, thank you it is working now, I will keep the code in jFiddle for users who need help with this
Youssef
Re: PopUp Div
It 's an intersting thing browsers behaviour differ for same piece of code.but If I open it with FF I need to take the $(document).ready(function(){ off.
-
YoussefSiblini
- Forum Contributor
- Posts: 206
- Joined: Thu Jul 21, 2011 1:51 pm
Re: PopUp Div
Agreed specially IE, it is nightmare, no idea why it is still exist even lol