Looking for help with linking an HTML page to a JavaScript file in Framework7.
Here's a snippet of the HTML file:
<div class="page-content" id="details-form">
...
</div>
This form captures data, and I need the JavaScript file to run when the 'Purchase' button is clicked.
Here's the simple JavaScript file:
$$(document).on('page:init', '.page[data-name="utilityForm"]', function (e) {
$$('#paymentbtn').on('click', function (e) {
console.log ("purchase electricity button clicked");
});
});