How to make a short piece of jQuery validate?
I'm using a piece of code which is producing validation errors. It uses the '&' sign and the validators aren't happy because they want it to be '
&' - which of course validates but stops the script working.
So, here is the code, how do I keep it working but enable it to validate correctly? The problem is the double '&' signs on the fourth line after .length...
- <script type="text/javascript">
$(document).ready(function(){
$(".tab-set").tabs();
if($(".tab-set").length && document.location.hash){
$.scrollTo(".tab-set");
}
$(".tab-set ul").localScroll({
target:".tab-set",
duration:0,
hash:true
});
});
</script>
Hope someone can figure this one out?