I have a table with some rows which are not normally displayed (using a class with CSS display:"none";). On a button press I want to display these rows. The problem is that the whole table is dynamically added to the page and so the code does not work.
HTML
<tr class="HiddenRowClass"> .... </tr>
JS
function ShowRowsClick() {
$(".HiddenRowClass").css("display","");
}
I have read about using .on() for binding events to dynamically generated elements, but I can't find anything talking about non event binding. (If that is the correct term for it)
$(".cssClass").removeCss("display")showmethod would do.$("tr").removeClass("HiddenRowClass");would work.