How to get the value of the slider bootstrap?

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

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



        
6条回答
  •  伪装坚强ぢ
    2020-12-03 07:45

    I think it's currently broken.

    Documentation states:

    Methods

    .slider('getValue')

    Get the value.

    How ever, calling $('#sliderDivId').slider('getValue') returns the jQuery selector rather than the value...

    For now you could manually grab it from the data object... $('#sliderDivId').data('slider').getValue()

提交回复
热议问题