Issue with jquery external linking

Status
Not open for further replies.

18folder

Active Member
257
2011
8
0
I created a custom alert box using css and jquery, the css_alert box has an "Cross sign" button inside css_alert box, it fadesout (closes) the box when clicked. I want to store this css_alert box function in seperate .js file so that i can simply link this script in every other php pages. When i do that, the click event of the cross button inside css_alert box doesn't work. But, it works perfectly when the script is available in the page itself i.e not linked externally. Please help me to fix this.

Thankyou
 
2 comments
link to your site?

here are few things u can check:
1. First make sure jquery is loaded earlier then ur link to external js
2. Make sure your path to external js is valid
3. Try to add all javascript in footer area.

if all above is checked but still not work then post your site link here
 
@mRAza Thanks .. I placed the external js code at the very bottom of the page (just above the </body> tag) it's working now :D
 
Status
Not open for further replies.
Back
Top