fancybox - One form, two submit buttons -


i have 1 form , 2 submit buttons. @ moment this:

what first submit buttons open in nice popup window, http://fancybox.net/

any ideas?

i set fancybox open window specific class:

$("#fancybutton").fancybox({ autodimensions:true,     titleposition:'inside' }); 

the first button this:

<input type="button" id="fancybutton" value="button 1" /> 

then have second button actual submit button:

<input type="submit" value="button 2" /> 


also, if wanted form data in fancy box, use jquery scrap relevant info , drop in box :)

to scrape form:

var formdata=new array(); $('input').each(function(index) {        formdata[$(this).name] =    $(this).value();  }); 

call above in $('#fancybutton').click() function..

then can reference each field going formdata['insert field name here']


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -