-2

I am using a JQuery file < 1.9.1 and $.browser when utilized is showing undefined. When I call $ in the console I get:

function (e,t){return new b.fn.init(e,t,r)}

My header linking looks like this:

<script type="text/javascript" src="jquery.js" ></script>
<script type="text/javascript" src="mobile.js"></script>

Inside of my mobile.js looks like this:

jQuery(document).ready(function(){
console.log('works');   
});

Now when I put $.browser or jQuery.browser in the Google Chrome console window I always get undefined. Do you know why this would happen? Any solutions?

Coded Container
  • 863
  • 2
  • 12
  • 33

3 Answers3

2

jQuery.browser() was removed.

juan.obando
  • 210
  • 4
  • 11
2

Here is a link to the release notes. http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed

Gavin Stevens
  • 673
  • 5
  • 14
1

This was removed on JQuery 1.9 version

Douglas Lise
  • 1,466
  • 1
  • 20
  • 46