Converting a text input to a select with JavaScript

/ Published in: JavaScript
Save to your folder(s)

Sometimes you need the page dynamically changes a texbox with a dropdown box. On the example below we show you how to perform this work. The first way demonstrates how to do this with remove() and append() jQuery methods and the second shows how to perform the same work with replaceWith() method.


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.