lindell / lindell/JsBarcode

Dynamic Barcode generation

Open
#208 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Is it possible to replace the barcode information with information from another div?

Something like:
JsBarcode("#barcode3", "SK000007", {
format: "CODE39",
displayValue: true,
});

Replacing the SK000007 with content of another div such as this jQuery code?:
$('#div2').html($('#div1').html());

If so how might that be done?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the browser usage of JsBarcode and the selector-based example in the issue. Determine whether the barcode value can come from another div, and document or demonstrate the supported usage with the #barcode3, #div1, and #div2 example.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.