Send data to a Bootstrap modal

How to send data to a Bootstrap modal on ‘shown’.  Works with multiple data points.

<a data-toggle="modal" data-id="whateverDataYouArePassing" href="#idOfModal" class="classOfThetrigger btn btn-default">Full Info</a>

$(document).on("click", ".classOfTheTrigger", function () {
   var rowID = $(this).data('id');


Share this post:
Related Posts
Disable a dynamically created Bootstrap button onClick
Really easy registration form with JavaScript validation for Bootstrap

Leave a Comment