• Post Reply Bookmark Topic Watch Topic
  • New Topic

jquery click doesnt work  RSS feed

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have been using for quite sometime now . still i cant figure out why this piece of code doesnt work . im overlooking something . please help me out



Click on that anchor tag . Nothing happens i cannot see any of those alerts. what am i missing
 
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have 70 posts here, you should know by now that you should use code tags when posting code.

Eric
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are trying to add clicks before the elements are rendered to the page. You need to use document ready.

Eric
 
Naveen puttu
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but then eric .

These bind and live should take care of that isnt it
 
Naveen puttu
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please help me

It doesnt seem to be working even after adding document.ready as eric suggested
 
Author and ninkuma
Marshal
Posts: 66352
155
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please repost your code with proper indentation. Unformatted code is just too hard to read and you cannot expect volunteers to take the time to help you if you make it hard to do so.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66352
155
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot use the src attribute and put content into a script tag. Use one script tag to include jQuery, and another for your on-page script.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!