javascript - Browserify require modules onClick -
i'm using browserify set app. have module takes date input
:
var getstartandendcells = function() { var start = $("#start-coordinat").val().split(",", 2), end = $("#end-coordinat").val().split(",", 2),}
i'm needs take data after button click in main.js
, require first module.
$(document).ready(function () { $('.start-search').on('click', function () { var coordinates = require('./coordinates.js'); ... } $('.continue-search').on('click', function () { ... } }
how can make it?
Comments
Post a Comment