开发者

Rails, forms. jquery, actions with classes

开发者 https://www.devze.com 2023-03-10 19:26 出处:网络
I have root_path (index method), like this: <% link_to day, root_path(:day => day) %> 开发者_如何转开发

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

精彩评论

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