jQuery on iPhone Safari - Not working!
Hello,
Everything I've read says that jQuery should run on iPhone's Safari browser, and yet I can't get it working!
I tried this simple code, which should turn my div background yellow:
- <html>
- <head>
- <script type="text/javascript">
- $(window).load(function() {
- $('#test').css('background', 'yellow');
- });
- </script>
- </head>
- <body>
- <div id="test" style="width: 100px; height: 100px;"></div>
- </body>
- </html>
This works in every browser I've tried, including Safari, but when I load the page on my iPhone... nothing!
Any ideas, or further documentation? I'm pulling my hair out here!!!