function LLenaGrid(result) {
var table = "<table>"+
"<thead><tr><th>Cve_Modulo</th><th>Descripcion</th><th>Version</th></thead>"+
"<tbody>";
var row = "";
var i = 0;
$.each(result, function (key) {
row += "<tr>";
for (i = 0; i < result[key].length; i++) {
row += "<td>" + result[key][i] + "</td>"; ;
}
row += "</tr>";
});
table += row;
table += '</tbody></table>';
$("#panelNotificaciones").html(table);
}
It does get me what I want inside var table, it even shows the div with the table after I click, but suddenly the result disappears!! and i get the normal page again as though i didn't click the button.
it's like it were doing a postback but why? it's supposed to work that way