Hi all.
I am trying to figure out how I can have the value of a field placed into some code on change of a select.
I have the following code:
- $(function() {
var availableTags = [
{exp:channel:entries channel="tours" dynamic="no" status="active" entry_id="305"}{embed="includes/faq" entry_ids="{tour_faqs:child_ids}"}{/exp:channel:entries}];
$( "#test" ).autocomplete({
source: availableTags
});
});
In the variable I have some expression engine code to bring in the titles of entries for the autocomplete field.
What I am trying to figure out how I can achieve is to have the 305 of the entry_id="305" replaced with the value of a select on change.
Is this possible? if so I would be grateful if someone could show me how.
Thank you