nouislider - Add a percentage (%) symbol to input value, but not pass with form -
i have nouislider working fine. add postfix "%" symbol input fields, show user value percentage value, , problem i'm having value being passed form includes % symbol. know workaround value passed form?
an alternative method tried, format:wnumb method suggested in nouislider documentation follows:
slider.nouislider.on('update', function( values, handle ) { moisturevalues[handle].value = values[handle] + '%'; });
however still appending percentage symbol url. there other way solve problem? thanks
the value of input value submitted, how basic feature in html works. have options:
- place
%
sign in<span>
after input. - use
addeventlistener('submit', ...)
on form, capture submit, change input value , re-submit (using.submit()
). - displaying entire value in span, , using separate (hidden) input submit value.
(disclosure: i'm lead developer libary).
Comments
Post a Comment