I have the following code that works fine
$(window).load(function(){
$(document).ready(function(){
$("input[name ='_sft_product_cat[]']").parent().next(".children").css("background", "yellow");
})
});
What I am trying to do is turn this into a click event but I cant get it work, I have tried the following
$(window).load(function(){
$(document).ready(function(){
$("input[name = '_sft_product_cat[]']").click(function(){
$(this).parent().next(".children").css("background", "blue");
return false;
});
What am I doing wrong?
Thanks