Thank you both :-) Divavocals you are right. I removed
it now looks like:Code:<script src="'.DIR_WS_TEMPLATES . $template_dir . '/jscript/jquery-1.10.2.min.js"></script>
And is still worked.Code:$field = '<script type="text/javascript"> $(function(){ $("#attrib-'.$tmp_attribID.'").on("click", function(){ $("#SBA_ProductImage").attr("src", $(this).find(":selected").attr("data-src")); }); }); </script>';
mc12345678 thanks for telling me wat the snippet actually does.
Bookmarks