Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Update jQuery Cookie for Different Plugin WordPress

  • SOLVED

Hello all,

I am in need of some help making changes to a jQuery cookie that was made for me here on wpquestions. When I had originally asked for help I was using a pop-up plugin called 'popbox', but now have switched over to using the Twitter Bootstrap plugins and need to adjust the cookie to function for the Bootstrap 'popover' plugin.

The point of the cookie is that I have forms inside the popovers, and if a user submits a form, but there are errors on the form, the popover with the error filled form should re-open when the page reloads.

Here is the existing cookie:[[LINK href="http://pastie.org/5495324"]] http://pastie.org/5495324[[/LINK]]


Here is where you can find the bootstrap popover plugin: [[LINK href="http://twitter.github.com/bootstrap/javascript.html#popovers"]]http://twitter.github.com/bootstrap/javascript.html#popovers[[/LINK]]

Here is a button on my site: [[LINK href="https://hookahi.com/test/"]]https://hookahi.com/test/[[/LINK]]

Answers (1)

2012-12-08

Christianto answers:

Hi Kyle,

Please check this code
[[LINK href="http://pastebin.com/UN51gju8"]]http://pastebin.com/UN51gju8[[/LINK]]

Let me know if its not working properly..

Thanks


Kyle comments:

Thanks for the reply

Works perfectly :)


I am just going to test with multiple forms to make sure there are no conflicts, then I will award the prize