Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

170
Views
How to add removable buttons dynamically in javascript

I have one input tag. If any one start filling data, it will provide suggestion. When user select any of the suggestion, a removable button should appear below input tag. button should have text what the user has given input in input tag. When I tap on cross above the button, the button should be remove.

<div class="col-md-3 col-sm-3 col-xs-12">
  <div class="form-group">
    <label class="col-md-12 col-sm-12 col-xs-12">mylabel</label>
    <div class="col-md-12 col-sm-12 col-xs-12">
      <input class="form-control" id="ws_users" name="ws_users" value="" />
    </div>
  </div>
  <div id="some-items"></div>
</div>

$('#ws_users').autocomplete({
      source: availableTags
  });

How would I achieve this?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!