Skip to content
WJunction - Webmaster Forum

Issue with jquery external linking

Status
Not open for further replies.

18folder

Established Member
257
2011
8
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.

About the author

1
Established Member · Joined
257
Messages
8
Reactions
18
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom