- In my project I want to include a (input-spinner ) in my HTML file.
- I run the npm install bootstrap-input-spinner command.
- A node module folder and package lock.json was created along with my HTML file
- In HTML, I created a link for that plugin but this is not working.
My HTML body code:
<body>
<div class="container">
<h1> Calculator</h1>
<div class="card">
<div class="card-body">
<input type="number" value="0" min="0" max="100" step="1"/>
</div>
</div>
</div>
<script src="/node_modules/bootstrap-input-spinner.js"></script>
<script>
$("input[type='number']").inputSpinner();
</script>
</body>
I also include bootstrap cdn in my project