Imprimir código de barras usando jquery-barcode

Print barcode using jquery-barcode

Generate barcode using jquery-barcode

This plugin helps you display barcodes on your website or web systems, you can create manually or automatically among 12 code formats.

Supported barcode formats

  • standard 2 of 5 (std25)
  • interleaved 2 of 5 (int25)
  • ean 8 (ean 8)
  • ean 13 (ean 13)
  • upc (upc)
  • code11 (code11)
  • code39 (code39)
  • code93 (code93)
  • code128 (code128)
  • codabar (codabar)
  • msi (msi)
  • datamatrix (datamatrix)

Supported barcode output format

  • CSS (compatible with any browser)
  • SVG inline (not supported by IE)
  • Online BMP (not supported by IE)
  • CANVAS html 5 (not supported by IE)

creating barcode


1<script type=”text/javascript” src=”jquery-1.3.2.min.js”>  
<script type=”text/javascript” src=”jquery-barcode.js”>  

HTML: Create an html wrapper that displays the barcode.

1<div id=”bcTarget”></div>  

JS:  Call the plugin and generate a barcode.

1<input type=»button» onclick=’$(«#bcTarget»).barcode(«1234567890128», «ean13″,{barWidth:2, barHeight:30});’ value=»ean13»>  

Watch the live demo and download the source code.