Hi,
I have a simple form which is being posted to a php script which then shows some html. How can I open colorbox when user presses submit button of the form and show the results in the colorbox ??
Any help is appreciated.
Thanks.
Hi,
I have a simple form which is being posted to a php script which then shows some html. How can I open colorbox when user presses submit button of the form and show the results in the colorbox ??
Any help is appreciated.
Thanks.
Hi,
Thanks for the help. I got it working, my code is following incase anyone else is looking for same thing:
[code]
$(document).ready(function() {
$(“#btnAddToCart”).click(function () {
$.post(“add-to-cart.php”,
$(“#frmProduct”).serialize(),
function(data) {
$.colorbox ({
html: data,
open: true,
iframe: false,
width: “50%”,
height: “70%”
});
}, “html”);
return false;
});
});
</script>[/code]
Hope this helps.
Thanks.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.