My jquery scripts have some php in them to initiate variables, etc. I'm trying to use something like minify to compress it and deter prying eyes. The php is causing issues. Anybody done anything similar?
here is just an example of my php-infused javascript:
$('input[name=type]:radio').filter('[value=<?=$type?>]').attr('checked', true);
$('input[name=cert]:checkbox').filter('[value=<?=$cert?>]').attr('checked', true);
$('input[name=gauge]:checkbox').filter('[value=<?=$gauge?>]').attr('checked', true);