use a variable: var tags_input = $('#tags_input')  <-- see bottom comments for better naming