I am trying to write a small snippet that allows the user to go to ie) go to a new URL based on the user's selection in the selection control.
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
var id = jQuery($this).val();
var url = some_Lookup_func(id);
jQuery("#the_id").change(function () { );
});
</script>
Note. This is not the AJAX behavior that I want, I want the browser to work as if you clicked on a hyperlink. I have done this before, but I forgot how to do it. I looked through jQuery docs and load () doesn't seem to do this because I don't want to post content on the current page - I want:
- go to a whole new page
- pass parameters to the url I am referring to (e.g. id of selected item
source
share