Closed droidbreaker closed 4 years ago
You will need to provide a jsfiddle for us to look at anything. From what I understand though, if you watch for the change
event you can get the previous value: https://github.com/seiyria/bootstrap-slider#events
@seiyria thank you sir i will be try to post jsfiddle format
Here is my Code:
client.println("
LEDwhite: <span id=\"brightnessWhite\">
");client.println("<input type=\"range\" min=\"250\" max=\"1023\" step=\"38.65\" class=\"slider\" id=\"brightLEDW\" oninput=\"LED1(this.value)\" value=\""+valueString+"\"/>");
if(header.indexOf("GET /?value=")>=0) { lvl1 = header.indexOf('='); lvl2 = header.indexOf('&'); valueString = header.substring(lvl1+1, lvl2);
i am using in Arduino IDE for ESP-8266 wifi module for webpage interface
I just need to take two adjecent values and then i will be taking average of those two values which will previous and latest values so how can i store these two values in variables i mean how can i get values here i am getting updated values every time as latest value. how can i get previous value how can i store previous value in variable please guide me thank you!