working off this question: Passing data to Bootstrap 3 Modal
In all these examples, the data-id is sent to a text box, with this line:
<input type="text" name="bookId" id="bookId" value="" />
How do I send the data (may be as a variable) so I can make it the heading of the modal instead of using an input type. I tried something like this, but it does not work:
<p type="text" name="bookId" id="bookId" value="" />
For example, in this fiddle: http://jsfiddle.net/4XJ54/
the data-id "ISBN" is populated in the text box. How do I get the data-id "ISBN" to show up as the heading instead?
` does not have `value` attribute.
– Shaunak D Apr 25 '15 at 04:43