Toggle function in Safari
Hi there,
i`m pretty new in jquery and i`m trying to make a button to toggle the background image. It works fine in Firefox but not in Safari. I hope someone can help me to get it working....
- <script type="text/javascript">
- $("#togglebutton").toggle(
- function () {
- $("#pagewrapper").css({"background":"url(images//bg_wrapper_2.jpg"});
- },
- function () {
- $("#pagewrapper").css({"background":"url(images//bg_wrapper_1.jpg"});
- }
- );