hi all
i'm trying to learn jquery and cluetip and have come across a problem
where an extra line of jquery javascript causes cluetip to stop
working
eg it works if I write
<script type="text/javascript">
$(document).ready(function() {
$('a.player').cluetip();
});
</script>
but if I write
<script type="text/javascript">
$(document).ready(function() {
$('a.player').cluetip();
try {
$("form :input:first").focus();
} catch (exception) { }
});
</script>
cluetip stops working. There are no javascript errors reported, but
the "$("form :input:first").focus();" line causes the cluetip popups
to stop appearing.
Is there something obvious here I am doing wrong?