jQuery ui autocomplete array should:
var availableTags = [
"How are you doing?",
"What are you doing?",
"What did you eat today?",
"Be Yourself",
"Try new things"
];
These variables should come from .text() question form a tag.
<a class="toggle FAQCategory" href="">How are you doing?</a>
<a class="toggle FAQCategory" href="">What are you doing?</a>
<a class="toggle FAQCategory" href="">What did you eat today?</a>
<a class="toggle FAQCategory" href="">Be Yourself</a>
<a class="toggle FAQCategory" href="">Try new things</a>
I hope you got what I want.
I don't want to static input in jQuery ui arrays it should come dynamically is per text of question a tag.