Link calling a jQuery function doesn't seem to be working?

You're using the class selector instead of the id selector Hence do either.

You're using the class selector . Instead of the id selector #. Hence do either $('#vote_up').

Click(function(){ alert("up"); }); or $('. Link_button'). Click(function(){ if( this.Id === 'vote_up' ) alert('vote up'); else if ( this.

Id === 'vote_down' ) alert('vote down'); } EDIT: also make sure everything is in a $(document).ready... i. E $(function(){ $('#vote_up'). Click(function(){ alert("up"); }); }).

Actually I just made the change to $('#vote_up'). Click(function(){ and it is still not working. Any idea why that may be?

– Genadinik Sep 30 '11 at 21:01 1 See my edit and make sure it's in a document. Ready – Interstellar_Coder Sep 30 '11 at 21:03.

Your current selector is incorrect, it is looking for an a tag with a class of vote_up not it's id... use this instead... $(function() { $('#vote_up')... }).

Just made that change and it is still not doing that alert. Any idea why that may be? – Genadinik Sep 30 '11 at 21:03 @Genadinik see update, just need to make sure the DOM is loaded before attaching event handlers... – jondavidjohn Sep 30 '11 at 21:15.

$('#vote_up'). Click(function() { alert('up'); }).

A. Vote_up looks for an tag with the class vote_up. In your HTML vote_up is an ID, so you want this: $('#vote_up').

Click(function().

Just made that change and it is still not doing that alert. Any idea why that may be? – Genadinik Sep 30 '11 at 21:03.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions