Jump to content

danpwhalen

Members
  • Posts

    3
  • Joined

  • Last visited

danpwhalen's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. <!DOCTYPE html><html><body><form oninput="x.value=parseInt(a.value)+parseInt(b.value)">X<input type="range" name="a" value="" /><br>Y<input type="number" name="b" value="" /><br>Sum = <output name="x" for="a b"></output><br></form></body></html>
  2. Im new to html, and this one might be simple, but I don't know how to pull it off. Check out/run this: <!DOCTYPE html><html><body> <form oninput="x.value=parseInt(a.value)+parseInt(b.value)">X<input type="range" name="a" value="" /><br>Y<input type="number" name="b" value="" /><br>Sum = <output name="x" for="a b"></output><br></form> </body></html> I want to add one more line after "Sum". I want to display the text "Low" if Sum is 100 or less, "Mid" if its 101 to 200, and "High" if its 201 plus. Whats the easiest way to do that? THanks!!
×
×
  • Create New...