jQuery Capture Checkbox in UI Dialog Box -


based upon checkbox, pop jquery ui dialog box. content of dialog box dynamically built db. each row has check box selection.

i'd trigger additional functionality based on clicking 1 of check boxes. in dynamically created table, each check box has class of "promoteselect".

here's code have jquery side of things.

// handle selecting rows 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?

** update ** figured out. had change container , selector.

$('#higherdiv').on('change', '.promoteselect', function(){}); 


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -