idI have a form from which I trigger the Bootbox dialog popup window like this:
$(function() {
return $("#buy_order_btn").click(function() {
return bootbox.dialog({
title: "Confirm Buy Order",
message: " // here should come the product name from the initial form"
});
});
});
Question: How can I display the values from the initial order form within the message part in bootbox?
I was thinking about something like
var product = $("input[id='product']").val()
but i am not sure. Please advise
Edit:
the initial form looks like this:
<form>
<input type=text id=product>
</form>