+ 1
Can someone help me finish my slider output please?
Can someone help me with this slider, I need it to output the value of the slider when you click the submit button. https://code.sololearn.com/Wxm9Ps90q92K/?ref=app
4 Answers
+ 4
You've got two mistakes (plus a JQuery import problem in mobile -- at least android webview):
+ with the two last document.getElementById() you doesn't provide right id names: 'pricemin' and 'pricemax' in html, while 'pricemin2' and 'pricemax2' in JS...
+ as you target <span>s element, you should access its content with 'textContent' or 'innerHTML' attributes:
document.getElementById("pricemin").innerHTML = pricemin;
document.getElementById("pricemax").textContent = pricemax;
Anyway, JQuery mobile linked script in webview (android apps') make JS raise a security error, and that broke render of the page ^^
+ 3
What do you call << slider >>? @@
And what's the problem? This code seems to have been wrote by someone else for you... and seems to work (it display the 'count' in the second field: '0 - Hold' if you let the field empty, the count if you provide some value list in the first field ^^)...
+ 3
Oh thanks for the help!
+ 2
sorry wrong link!