Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a textbox and I want to bound dropdownlist control on it like datepicker in jquery.
Is this possible or not.
Please suggest..

I try this one, that is bound on click event of jquery..
XML
function EditAge() {
            var lblStudAge = $('#Age').html();
            var dropDownStudAge = '<select id="ddlAge">';
            for (var count = 10; count <= 25; count++) {
                dropDownStudAge += '<option value="' + count + '"selected>' + count + '</option>';
            }
            dropDownStudAge += '</select>';
            $('#Age').html(dropDownStudAge);
            $('#ddlAge').val(lblStudAge.split(' ')[0]);

        }
Posted
Updated 12-Feb-15 0:10am
v3

1 solution

Not sure if you are trying to achieve autocomplete, but if yes, then you can try the JQuery UI Autocomplete control[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900