Labels

Cerpen (18) html (16) movie (10) modul (7) SAP Security (2) c++ (2) Business (1)

Thursday, 25 February 2016

cara nak kira guna dropdown

&nbsp    kod ni untuk bagi jarak sahaja,,tak letak pun takpe
kod ni sebenarnya rentetan drp posting simple kod je,,cheers hihi


<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<form onsubmit="return false" oninput="o.value = parseInt(a.value) * parseInt(b.value)">

  <select name="a" id="num" type="number" step="any"> <option value="20">20</option><option value="2">a</option></select> &nbsp &nbsp *


  &nbsp &nbsp <select name="b" id="num2" type="number" step="any"><option value="10">10</option><option value="3">3</option> </select> &nbsp =
  <output name="o" for="a b">&nbsp</output>
</form>

</body>
</html

No comments:

Post a Comment