How to get the value of the slider bootstrap?

前端 未结 6 605
刺人心
刺人心 2020-12-03 07:20

How to get the values of the slider bootstrap to hidden iputs?



        
6条回答
  •  生来不讨喜
    2020-12-03 07:42

    The problem is, that there is more than 1 element with the same ID (the slider div and the input inside the slider div), in this example $('#sliderDivId'). If you select the input element with JQuery, you can use the slider API.

    $('input[id="sliderDivId"]').slider('getValue')
    

提交回复
热议问题