Total Posts:
602
Karma:
3988
Joined:
1/16/2011
Location:
United Kingdom
Hello Friends I hope someone can help me with this weird issue I am having. I am inserting some custom jQuery code into [ Views/Customer/Login.cshtml ] and it is not loading. I have no idea why ! I would greatly appreciate any help, here's the code: <script type="text/javascript"> $(document).ready(function(){ if ($.browser.msie) { $('.username').focus(fuction(){ alert('boo'); }); $('.email').focus(fuction(){ alert('foo'); }); } }); </script> Thank You.
Total Posts:
602
Karma:
3988
Joined:
1/16/2011
Location:
United Kingdom
You were right Skyler. $.browser seems to have been removed ! I have got the following now, but it is still not working. <!--[if IE]> <script type="text/javascript"> $(document).ready(function () { $(".username").val("Your Username"); }); </script> <![endif]--> .username is a class applied to an input of type text.
Total Posts:
602
Karma:
3988
Joined:
1/16/2011
Location:
United Kingdom
lol that was exactly it. The username stuff wasn't being generated, because they were turned off from the admin cp. It now works. :) Thanks so much.