Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a webpage that uses a select for options, but instead of using radio buttons or checkboxes, I would like to have the pulldown show 2 text boxes so the user can enter a minimum and maximum value.

The code I wish worked looks like this

HTML
<select id="multi-select-sizes" multiple="multiple">
     <input type="text" id="minValue" value="0">
    <input type="text" id="maxValue" value="0">
</select>


Putting a label before the text box would be good.

Any ideas how to do this?

What I have tried:

I have tried doing this but it shows the text box next to the select instead of as a selection under it.
Posted
Updated 18-Nov-18 5:05am
Comments
Mohibur Rashid 30-Oct-18 20:09pm    
You cannot have input-box with drop down. If you do not want to show input box in the main window, try pop-up window, using div

1 solution

You can not use input textbox instead of the option. You can use any range slider to get minimum value and maximum value.

Ion.RangeSlider - jQuery-plugin, range slider, diapason, noUI, skin support[^]
 
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