just found out - you have to apply "simplemodal-close" class to your button
On Jul 25, 6:32 pm, method8 <william.farru...@gmail.com> wrote: > I can't seem to close my modal dialog except when using the close > button. > > I want to do a search dialog box, that closes as soon as the user > presses search (rather than press search and then the close button) > > I created my search box like this: > > $("#search").click(function(){ > $("#searchBox").modal({overlayClose:true}); > > }); > > But I am clueless about how to connect my search button to actually > close it. > > Thanks in advance for your help