Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/03/2017, 21:09
sarrhen
 
Fecha de Ingreso: mayo-2013
Ubicación: San Vicente
Mensajes: 127
Antigüedad: 11 años
Puntos: 1
Respuesta: convertir val en codigo barras

Si gracias aqui dejo la solucion se que esta bien lo que hacia tenia que leer un poco
Código HTML:
Ver original
  1.     <head>       <script src="http://code.jquery.com/jquery-latest.min.js"></script>
  2. <script type="text/javascript" src="http://www.jqueryscript.net/demo/Simple-jQuery-Based-Barcode-Generator-Barcode/jquery-barcode.js"></script>
  3.    <script>
  4. $(document).ready(function(){
  5.    $('#button').click(function(){
  6.     var text = $('#text').val();
  7.     $('#showVal').text(text);  
  8. $("#bcTarget").barcode(text, "code128");
  9.    });
  10.    });
  11.     </head>
  12.     <body>
  13.         <input type="text" id="text">
  14.         <input type="button" id="button" name="click">
  15.         <div id="showVal"></div>
  16.         <div id="bcTarget"></div>  
  17.     </body>
  18. </html>

Última edición por sarrhen; 12/03/2017 a las 21:17