Rails, forms. jquery, actions with classes
I have root_path (index method), like this:
<% link_to day, root_path(:day => day) %>
开发者_如何转开发
I want click to this link, and afterclick this link change color. How can I make it? How can I use jquery?
you would do this using css not jquery. just set your css tags for links (a
is a link, as in <a href="">
a {
color: UNCLICKED COLOR;
}
a:visited {
color: CLICKED COLOR;
}
精彩评论