I have a search form I'm going to have it in Colorbox. The user will click on a link "Search" on any given page on the site, colorbox will open and frame a page with a search form in colorbox. After the user submits the form, the problem is the form redirects to a new page but it is still in colorbox. This is a problem b/c the search results page doesn't fit into Colorbox. Instead, I'd prefer to have it so that when the user submits the form, colorbox closes and the user is redirected to the results page for the s开发者_开发技巧earch results.
Thanks!
You could possible do:
var form = $("colorbox > iframe").contents().find("form").clone();
form.appendTo("body").submit();
Turns out Colorbox closes upon submitting the form. I should have tested before asking questions. Sorry :(
精彩评论