how to window.location.href parameter from the <select> field

how to window.location.href parameter from the <select> field

I've got code, but it doesn't href's (redirects) user after changing the <select> value; what I need to fix?:

<script type="text/javascript">$(function(){$("select[name=\'goto\']").change(function(){$("#goto").window.location.href="'.URL.$uri.'/p".$("#goto").val();});});</script>

<select id='goto'>...

----

what I want to open page (make redirect) and to do that I need to ADD to the LINK ( http://domain.com/xxx/pVALUE_OF_SELECT)

http://path-of-power.com/extreme-tiredness-feeling-tired,1