Bootstrap link to pass variables to modal content
Used to build list of links calling same modal, but each link will pass certain name or variable into modal to be processed
Script below (in Bootstrap 3 but maybe used fine with Bootstrap 4), calls modal passing a PostID to confirm a delete of post
Then when user clicks on "Confirm delete", the tool knows which post to delete
Imported from Alwah.net
Three parts:
Part1: Command ancher to show the modal
Part2: The actual modal and content
Part3: JQuery needed to be called to pass variables into modal
Needs Bootstrap 3, Bootstrap 4.*, JQuery
Access is limited.
Login here using your Linkedin account. to see or download code.
No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Mydev.net
Linkedin Login