Código Javascript:
Ver original
<script src="https://code.jquery.com/jquery-1.10.2.js"></script> <script> $(document).ready(function(){ $('#button').click(function(){ var text = $('#text').val(); $('#mostrar').text(text); $("#bcTarget").barcode(text, "ean13"); }); }); </script> <script type="text/javascript" src="jquery/jquery-barcode.js"></script> </head> <body> <input type="text" id="text"> <input type="button" id="button" name="click"> <div id="mostrar"></div> <div id="bcTarget"></div> </body>