this code snippet works fine on its own but as soon as it's added to Magento it doesn't work. Anyone have any thoughts?
<!-- Start Edits -->
<script type="text/javascript" src="jquery.autocomplete.js"></script>
<script type="text/javascript" >
//<![CDATA[
var jQuery = jQuery.noConflict();
jQuery(document).ready(function()
{
jQuery("#antique_toys_materials").keyup(function()
{
var tag = jQuery(this).val();
if(tag != '')
{
jQuery.ajax(
{
type: "GET",
url: "../../../../../../../../../../auto_suggest_original/autocomplete.php",
data: "q=" + tag,
cache: true,
success: function(result)
{
jQuery("#antique_toys_materials").val(result);
}
}
);
}
return false;
}
);
}
);
//]]>
</script>
Thanks!