I Have a function that references a specific input text box. I would like to extend the function to be used by two specific input text boxes. Rather than duplicate the code for the other text box, can anyone advise on how to reference the other?
Here it uses #Tags, but if i wanted it to reference #Tags2 also, how could I do that?
$(function () {
$('#Tags').tagSuggest({
separator: ", ",
tagContainer: 'div',
tags: ["tag1","tag2"]
});
});