Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
291 views
in Q2A Core by

How can I use the same functionality about 'tags hints' in the 'ask a question' section in my own q2a website? I've tried naming equal the 'ask a question' input text (title) and input text for type tags (tags), in order to use the same js functions, but it doesn't work.

When I saw the console in the browser I note a error message that say: 'Uncaught ReferenceError: qa_tags_complete is not defined' and nothing happens...

Code added in qa-theme to include the JS functions:

<script src="' . $this->rooturl . 'js/qa-page.js"></script>
<script src="' . $this->rooturl . 'js/qa-ask.js"></script>

The 'Ask a Question' field:

<input type="text" name="title" id="title" onchange="qa_title_change(this.value);" placeholder="ask a new question or search for exists questions" class="form-control">

The 'Tags' field:

<input type="text" class="topics_input" name="tags" id="tags" onkeyup="qa_tag_hints();" onmouseup="qa_tag_hints();" value="" placeholder="Use hyphens to combine words"></input>

Q2A version: 1.7.2

Please log in or register to answer this question.

...