l have got a series of menus.
What l want to do is change the background-color of the link onclick.
What l have done use jquery like this
jQuery('.menu a').click(function(){
var clz = jQuery(this).attr('id');
jQuery(this).attr('class','active'+clz);
})
This is not work.The code needs to work on mobile phones