Hi,
I am developing a site and have used a peice of JQuery javascript for my search box. I am also trying to implement Lightbox for images. I can only get one or the other to work.
If I comment out 1 script then the other works fine and vice versa. If I try to have both scripts running the page opens fine (but with errors) and the JQuery script does not work.
The code in my header is below....
<script type="text/javascript" src="js/jquery.js"></script>
<script language="JavaScript" src="js/jquery.hint.js" type="text/JavaScript"></script>
<script type="text/javascript" charset="utf-8">
$(function(){
// find all the input elements with title attributes
$('input[title!=""]').hint();
});
</script>
<script type="text/javascript" src="<?php print $root."lightbox2.04/js/prototype.js"?>"></script>
<script type="text/javascript" src="<?php print $root."lightbox2.04/js/scriptaculous.js?load=effects,builder"?>"></script>
<script type="text/javascript" src="<?php print $root."lightbox2.04/js/lightbox.js"?>"></script>
I am developing a site and have used a peice of JQuery javascript for my search box. I am also trying to implement Lightbox for images. I can only get one or the other to work.
If I comment out 1 script then the other works fine and vice versa. If I try to have both scripts running the page opens fine (but with errors) and the JQuery script does not work.
The code in my header is below....
<script type="text/javascript" src="js/jquery.js"></script>
<script language="JavaScript" src="js/jquery.hint.js" type="text/JavaScript"></script>
<script type="text/javascript" charset="utf-8">
$(function(){
// find all the input elements with title attributes
$('input[title!=""]').hint();
});
</script>
<script type="text/javascript" src="<?php print $root."lightbox2.04/js/prototype.js"?>"></script>
<script type="text/javascript" src="<?php print $root."lightbox2.04/js/scriptaculous.js?load=effects,builder"?>"></script>
<script type="text/javascript" src="<?php print $root."lightbox2.04/js/lightbox.js"?>"></script>