[jQuery] Re: simplemodal plugin - close modal dialog by button/link whatever

2009-07-25 Thread method8
just found out - you have to apply "simplemodal-close" class to your button On Jul 25, 6:32 pm, method8 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 > pre

[jQuery] simplemodal plugin - close modal dialog by button/link whatever

2009-07-25 Thread method8
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(){ $("#searchB

[jQuery] Event binding newly added jQuery objects

2009-03-07 Thread method8
Each time I add new HTML to a div, either by .html('') or by .load... it looks great but it seems that the newly added html's event do not bind to the page's javascript/jquery. That means that a span or a div cannot be clicked even if it's been added. Any ideas how to solve this issue? Thanks