Object doesn't support property or method 'find' in jquery -


i have references below in form

<link type="text/css" rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>     <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> 

i trying find contents of title element below string.

var mytext = "<head><title>bad error</title></head>"; var err = mytext.find('title');  

i getting object doesn't support property or method 'find' error.

my requirement want text between element <title>.

use filter tag

$(mytext).filter('title').text(); give title tag text.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -