saribe / eModal

Easy Modal for bootstrap, is a simple way to create modal dialogs using javascript.
http://saribe.github.io/eModal
271 stars 97 forks source link

Please provide an option to set a custom ID on the modal #5

Closed rgasch closed 9 years ago

rgasch commented 9 years ago

This would be useful by allowing certain actions to target only specific modals.

saribe commented 9 years ago

Can you please provide more detail, perhaps an example?

Best,

-----Original Message----- From: "Robert Gasch" notifications@github.com Sent: ‎28/‎04/‎2015 09:32 To: "saribe/eModal" eModal@noreply.github.com Subject: [eModal] Please provide an option to set a custom ID on the modal(#5)

This would be useful by allowing certain actions to target only specific modals. — Reply to this email directly or view it on GitHub.

saribe commented 9 years ago

Everytime you create a eModal, this return the jQuery object, and then you can do what ever you need with it!

var $eModal = emodal.alert("Message", "Title"); $eModal.find("...").prop("Id", "some-id")...