Based upon a checkbox, I pop a jquery UI dialog box. The content of the dialog box is dynamically built from a db. Each row has a check box for selection.
I'd like to trigger additional functionality based on clicking one of the check boxes. In the dynamically created table, each check box has a class of "promoteSelect".
Here's the code I have for the jQuery side of things.
// Handle selecting rows from Promotion Sheet Selection Table
$(".promoteSelect").on("change", function() {
if(this.checked) {
var env = $("#selectedEnv").val().toUpperCase();
var promo_key = $(this).val();
alert(promo_key);
buildRepoTable(promo_key, env);
}
});
Any ideas?
Aucun commentaire:
Enregistrer un commentaire