cant get my selector right !
I have a simple alternative right click script that is activated using this jQuery
- $('.status')
- .rightClick( function(e) {
- $('#right_click').css('top', e.pageY)
- .css('left', e.pageX)
- .show();
- });
In the current version above, it works fine when right clicking in any element with the class set to 'status'.
How ever I have another piece of script which applies an additional class (selected) to selected elements which results in the class being set to 'status selected'.
I want to limit the above script to only work on these selected elements but I can not get the selector right. I have tried $('.selected') and $('.status.selected') but neither of these are working.
Is there something I am missing?