How do i add an input text in a dropdown list? or is there a way I can add a data in a dropdown list without going to the database?

or...

is this not possible!!!

You mean add new options to a <select> list? Yeah, you can do that with javascript. Somethin like the code below. Just remember, javascript is cAsE sEnSiTivE ;)

<select id="yourSelectList" ....>
    <option value="1">grapes</option>
    <option value="2">pears</option>
</select>
<script type="text/javascript">
    var list = document.getElementById('yourSelectList');
    list.options[list.length] = new Option('strawberries', '3');
    ...
</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.