Topic: how to highlight the selected menu option dynamicly?

hi all,

i use the bootstrap(js/css) to create a menu. i want to highlight the menu option when i enter the correspond html .

what i am doing is that pack the menu-code into a html file and  each html file(correspond to the menu) add css code through

jquey method in $(function(){}), after the add-css-code action i load the menu-file .

but it doesn't work, why ? i add the css code before load the menu ?!

someone else can help me explain what' wrong with my idea? or give a better solution !


many many thanks!!!!

i am a rails rookie

Re: how to highlight the selected menu option dynamicly?

just write js code by hand!

i am a rails rookie