开发者

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;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜