i use jquery with simple modal plugin. When in modal user select the cell of table i need to do information about this cell. Size of table and info about cell take different amounts of space on the screen. I want to change size of modal window, can i do that without closing modal window?
part of function which called when user click table cell:
// temp element for display data about record in table
var tmp = $("#temp")[0];
// table invisible
$("#tableells")[0].style.display="none";
// do temp element visible
tmp.style.display="";
// fill temp element with data of record (name is par of function)
tmp.innerHTML = name;
// here i want to change size of modal window
You have a couple different options.
1) To let SimpleModal determine the size based on the new content, call:
2) To tell SimpleModal what dimensions you want to use:
Hope that helps…