$(document).ready(function(){ $(‘.modal’).modal({show: false, keyboard: false}); // disable keyboard because it conflicts below $(‘.modal’).on(‘show.bs.modal’, function (event) { //add modal id to array modals.push(event.target.id);
Categoría: HTML
Lenguaje de marcado, tips para desarrollo, tables
Prepare a dummy HTML table for testing purpose. ‘result’ Div will show the corresponding row and column number when a particular cell of
My solution is similar to the one of lolo above. However, I insert the HTML code via JavaScript’s document.write instead of using jQuery: a.html: <html>
Programaticamente se puede cambiar de TAB con la siguiente función $(‘ul.nav-tabs li a[href=»#elhrefdeltab»]’).click()
Forma 1 (Personalmente no probada) $(‘.selector’).tabs({ activate: function(event ,ui){ //console.log(event); console.log(ui.newTab.index()); } }); Forma 2 (Probada en LinkedMobile) $(«#myTab»).on(«click», «a.tab1», function(){ console.log(«selected tab id: »
Se puede detectar el cierre de una ventana modal y limpiar el contenido de un jgrid y del campo de busqueda: $(‘.modal‘).on(‘hidden.bs.modal’, function