Hi Anthony,
Thanks for your reply.
> $(function() {
> $("#no_table_locality_args").autocomplete({
> source: "{{=URL('hubaddressbook', 'locality_args_autocomplete')}}" +
> "/" + $(select#no_table_word).val(),
I tried the above, which made the view's JavaScript invalid, I had to
add '' to make it valid JavaScript:
$('select#no_table_word').val()
Testing this, results in the following url:
.../init/hubaddressbook/locality_args_autocomplete/?term=Am
Adding option:selected: $('select#no_table_word
option:selected').val() as in http://api.jquery.com/val/ doesn't make
any difference.
When I hard code the .val() part with "Coach":
$(function() {
$("#no_table_locality_args").autocomplete({
source: "{{=URL('hubaddressbook', 'locality_args_autocomplete')}}"
+ "/" + "Coach",
minLength: 2
});
It all works. The url:
.../init/hubaddressbook/locality_args_autocomplete/Coach?term=Am
Removing the the jQuery UI MultiSelect from the select doesn't make
any difference.
Kind regards,
Annet