I'm new to jQuery and JS

I want to change a snippet of code based on which link the user clicked.

So if the user clicked this link on the page:
# click me  

I would like to hide a particular snippet of code inside a script tag. But
I'm not really sure how to write the JS/jQuery

Example:

<script>

$("#vclick2").click(function(){

if the above link (#vclick2) is clicked hide part of the script 

});
</script>

I'm having trouble getting it to work.




-- 
View this message in context: 
http://www.nabble.com/Change-code-based-on-link-clicked-tp20091922s27240p20091922.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to