<script>
jQuery.noConflict();
jQuery(document).ready(function($){
$("#my_jump_menu").change(function() {
{
window.location = $(this).val();
}
}
});
</script><select name="my_jump_menu" id="my_jump_menu">
<option>Jump To </option>
<option value="my_page_1.html">my_page_1.html</option>
<option value="my_page_2.html">my_page_2.html</option>
</select>
onchange="window.location.href=this.options[this.selectedIndex].value;"
<script type="text/javascript"> <!-- var jq = jQuery.noConflict(); --> </script>
just my thoughts because i fixed a js conflict like that recently
sharkbait is right, of course.
are you’re sure the no conflict mode is working? i think you have to replace the $.
Finally, if you don’t want to define another alternative to the jQuery name (you really like to use $ and don’t care about using another library’s $ method), then there’s still another solution for you. This is most frequently used in the case where you still want the benefits of really short jQuery code, but don’t want to cause conflicts with other libraries.
<html> <head> <script src="prototype.js"></script> <script src="jquery.js"></script> <script> jQuery.noConflict(); // Put all your code in your document ready area jQuery(document).ready(function($){ // Do jQuery stuff using $ $("div").hide(); }); // Use Prototype with $(...), etc. $('someid').hide(); </script> </head> <body></body> </html>
This is probably the ideal solution for most of your code, considering that there’ll be less code that you’ll have to change, in order to achieve complete compatibility.
window.location.href = $("#my_jump_menu").val();