Change Region on-click
-
Hi,
I’m trying to select the region dropdown and automatically change it on link click.
Normally this should work simply with javascript as below, by targeting the dropdown and then the value (ID), but i can’t get it to change.
Can someone help?
<p><script>var $select = $(‘#search_region’);
$(‘a[href=”#job_filters_form”]’).click(function () {
$select.val( $(this).data(‘select’) );
});</script> </p>
<p>San Jose
New York
London
Paris</p>
<p>Click Me</p>
<p><script type=”text/javascript”>
$(document).ready(function(){
$(“#some_id”).click(function(){
// do something
$(“#job_filters_form”).val(“88”);
});
});
</script></p>
- The topic ‘Change Region on-click’ is closed to new replies.