• 0

Javascript changing A Tag content after click?


Question

If you go to the "What's the difference between Organic, Eco-Sustainable & Environmental Low Impact Products?" button when you click on it and the div shows in javascript, I would like the down arrow to go up. Not sure how to do it. if you can tell me how to would be great.

http://www.romabio.com/products/

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

if you use jquery:

$("#linkid").click(function()

{

//do something for click

var thelink = $(this);

//do something with link, for example css background

thelink.css("background", "......");

});

ow yeah, you might want to return false to cancel the link event to the browser. Or if you have several chained events, that might or might not be fired you can use the preventdefault method.

Link to comment
Share on other sites

  • 0

Trying to get the down arrrow to an "X". Trying to do a search on it but can't find anything on it.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.