+ 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

2nd Aug 2017, 5:23 PM
Alec Vindas
Alec Vindas - avatar
4 odpowiedzi
+ 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 ^^
3rd Aug 2017, 3:10 PM
visph
visph - avatar
+ 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 ^^)...
3rd Aug 2017, 7:14 AM
visph
visph - avatar
+ 3
Oh thanks for the help!
5th Aug 2017, 3:02 AM
Alec Vindas
Alec Vindas - avatar
+ 2
sorry wrong link!
3rd Aug 2017, 1:15 PM
Alec Vindas
Alec Vindas - avatar