SanSYS

HTML5 output tag http://www.sansys.net/2014/07/html5-output-

Jul 14th, 2014
3,560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.30 KB | None | 0 0
  1. <form oninput="x[x.hasOwnProperty('value') ? 'value' : 'innerHTML'] = parseInt(a.value) + parseInt(b.value||0)" onsubmit="return false">0
  2.     <input type="range" id="a" value="50">100
  3.     +<input type="number" id="b" value="50">
  4.     =<output name="x"  for="a b">100</output>
  5. </form>
  6. <!--so.. we starts!--!>
Advertisement
Add Comment
Please, Sign In to add comment