Is it possible to combine both a class selector and an attribute selector with jQuery?
For example, given the following HTML:
I think you just need to remove the space. i.e.
$(".myclass[reference=12345]").css('border', '#000 solid 1px');
There is a fiddle here http://jsfiddle.net/xXEHY/