Open Fancybox (or equiv) from Form input type="submit"

Posted by nickmorss on Stack Overflow See other posts from Stack Overflow or by nickmorss
Published on 2009-06-09T11:35:28Z Indexed on 2010/05/11 22:34 UTC
Read the original article Hit count: 543

Filed under:
|
|
|

is there a way to get a fancybox (http://fancy.klade.lv/) or any other lightbox from submitting a FORM (with an image button)?

HTML looks like this:

<form action="/ACTION/FastFindObj" method="post">
  <input name="fastfind" class="fastfind" value="3463" type="text">
  <input name="weiter" type="submit">
</form>

These won't do:

    $("form").fancybox();
    $("input").fancybox();
    $("input[name='weiter']").fancybox();

Anyone spotting my mistake or having a workaround or an alternative script? Thanks in advance

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about fancybox