Hi all
I am using Business 12.0.2 with single add to cart button and Product list with Horizontal Dividers. I'm trying to highlight a table row in the product list when the qty box is the focus.
I have added
to the current stylesheet, and I have tried adding:
to JavaScriptFunctions, but I get the error message "$" is undefined
Could anyone suggest what I am doing wrong, or perhaps, a better method of achieving this. I also need a way of restricting this to the Catalogue pages.
Thanks for any help.
Lee
I am using Business 12.0.2 with single add to cart button and Product list with Horizontal Dividers. I'm trying to highlight a table row in the product list when the qty box is the focus.
I have added
Code:
.highlightedRow {
background-color: blue;
}
Code:
<SCRIPT type="text/javascript">
$('input').focus(function() {
$(this).parent().parent().addClass('highlightedRow');
});
$('input').blur(function() {
$(this).parent().parent().removeClass('highlightedRow');
});
</SCRIPT>
Could anyone suggest what I am doing wrong, or perhaps, a better method of achieving this. I also need a way of restricting this to the Catalogue pages.
Thanks for any help.
Lee
Comment