Skip to content

Latest commit

 

History

History

input-isbn

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

ISBN input field

npm version Workflow status

Demo

Examples

<script type="importmap">
  {
    "imports": {
      "@w0s/input-isbn": "...",
      "@w0s/isbn-verify": "..."
    }
  }
</script>
<script type="module">
  import inputIsbn from '@w0s/input-isbn';

  inputIsbn(document.querySelectorAll('.js-input-isbn')); // `getElementById()` or `getElementsByClassName()` or `getElementsByTagName()` or `querySelector()` or `querySelectorAll()`
</script>

<input class="js-input-isbn"
  data-validation-message-isbn-checkdigit="ISBN check digit is invalid."
/>

HTML attributes

data-validation-message-isbn-checkdigit [required]
Error message when check digit does not match.