JavaScript - Obtener el importe del producto seleccionado

 
Vista:
sin imagen de perfil

Obtener el importe del producto seleccionado

Publicado por Santiago (10 intervenciones) el 12/11/2013 02:58:00
El tema es que a cada option ej coca le doy un precio ejemplo $2, ingreso una cantidad q deseo comprar y me tiene que dar el importe.gracias
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<html>
<head>
 
<title>parte3</title>
</head>
 
<body>
<table width="488" height="191" border="6">
  <tr>
    <td><form id="form1" name="form1" method="post" action="">
      <table width="430" height="96" >
        <tr>
          <td width="169">seleccione el tipo d gaseosa</td>
          <td width="165">ing cantida
            <label for="cant"></label>
            <input type="text" name="cant" id="cant" /></td>
        </tr>
        <tr>
          <td><select name="lselect" id="lselect">
            <option>fanta</option>
            <option>coca</option>
            <option>sprite</option>
          </select></td>
          <td>importe
            <label for="imp"></label>
            <input type="text" name="imp" id="imp" /></td>
        </tr>
      </table>
      <p>
        <label for="lselect"></label>
      </p>
    </form></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder