Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi ,
To enter textbox text value dynamically adding dropdown list by using jquery
Posted

1 solution

Hi,

Do following steps.

-- Find out the text from textbox using jquery.. like $('#txtBox').text()

-- Then create Html tag of option list. You need to create common jquery function which take textbox value and will create following element. Drop down values are get display as option list. So you can create html tag as follows.

DisplayTextBoxValue

Make sure what tag does drop down is showing for values using browser developer tools. Depends on that change above tag.

-- After creating this element you have to just append it to DropDown option list using jquery.



-- SDK
 
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