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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -