Here is my best attempt that does not work:
:javascript
$(document).ready(function(){
- if params[:filtered] == "a"
highlightLink(0);
- elsif params[:filtered] == "b"
highlightLink(1);
- elsif params[:filtered] == "c"
highlightLink(2);
});
What should I do so that my above attempt works?
Just an example you can try something like following