76
rated 0 times
[
77]
[
1]
/ answers: 1 / hits: 164050
/ 14 Years ago, thu, january 27, 2011, 12:00:00
I have the following script which works with a 1 dimensional array. Is it possible to get this to work with a 2 dimensional array? Then whichever item is selected, by clicking on a second button on the page, should display the id of whichever item is selected.
This is the script with the 1 dimensional array:
var $local_source = [c++, java, php, coldfusion, javascript, asp, ruby];
$(#txtAllowSearch).autocomplete({
source: $local_source
});
This is the script for the button to check the id, which is incomplete:
$('#button').click(function() {
// alert($(#txtAllowSearch).someone_get_id_of_selected_item);
});
More From » jquery