You can use the following
jQuery("#select1").click(function(){jQuery(this).css({'background-color':'red})});
Hope this helps.
, . attr span . <span rel="red">Text</span>.
,
jQuery("ul span[id^='select']").click(function(){jQuery(this).css({'background-color':jQuery(this).attr('rel')})});