Get selected item value from Bootstrap DropDown with specific ID

前端 未结 7 709
鱼传尺愫
鱼传尺愫 2020-12-24 06:10

I am \"creating\" my own \"ComboBox\" using Bootstrap 3 and JavaScript. Here is the JSFiddle for what I have so far:

相关标签:
7条回答
  • 2020-12-24 07:16

    Works GReat.

    Category Question Apple Banana Cherry
    <input type="text" name="cat_q" id="cat_q">  
    
    $(document).ready(function(){
        $("#btn_cat div a").click(function(){
           alert($(this).text());
    
        });
    });
    
    0 讨论(0)
提交回复
热议问题