I got this js (also tried “change” with same result)
$("input[class='tag-checkbox']").live("click",function(){
var thisCheck = $(this);
if (thischeck.is (':checked')){
var tag = $(this).val();
$("#tag-field").val(tag);
return false;
}
});
which should set the value of this checkbox
<input class="tag-checkbox" type="checkbox" name="tag[]" value="' . $value['name'] . '" />
into this textfield
<input id="tag-field" type="text" name="product-tag" />
But the event is not fired and the textfield is unchanged. I have no error messages so is something wrong with the script?
try using directly
$(this):working example at : http://jsfiddle.net/hZVwE/
anyway the problem in your script is that you made a typo on thisCheck (once C is capital and then is not)