Got what is probably a simple one, but my google is failing me at the moment so hoping i can get a bit of a push in the right direction
I have a HTML page that is basically a bunch of checkboxes. These checkboxes are for simple self evaluation yes/no questionnaire that are weighted with different values based on the questions.
At the end of the questionnaire, you hit calculate results and it used a quick Javascript function to calculate the score and an Alert Popup give you the score
I recently migrated the page to Bootstrap 3 and cleaned it up a bit but want to use a Modal to popup instead of the old style Javascript alert
Is there a simple way of passing the javascript calculated variable from the main page to a Bootstrap Modal
Thanks
EDIT
Right - Worked it out, was calling the JQUERY code
$('#myResults').html(counter);
From within my Model - moved the snippet into the main javascript function and it works. Knew it was going to be a simple one.. Might be time to stop working i think
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…