[jQuery] Re: implemented css class not in html but is in generated html, failed to find
$('li.tabs-selected') also shows undefined.. i m unable to find li with the help of class 'tabs-selected'.. On Jan 16, 1:28 am, Balazs Endresz balazs.endr...@gmail.com wrote: Now that's another one: $('li').hasClass('.tabs-selected') and $('li').is('.tabs-selected') only tell you if li has that class or not, if you want to select by class do this: $('li.tabs-selected') On Jan 15, 9:11 pm, CreativeMind aftab.pu...@gmail.com wrote: hi, here is the html source of a list. li class=xsnazzy a href=#frMap style=text-decoration:none;text-indent:5px;b class='xtop' b class='xb1 '/bb class='xb2 color_a'/bb class='xb3 '/b b class='xb4 color_a'/b/bspan class=xboxcontent h1Map/h1/span/a/li -- here is the generated html source of a list. li class=xsnazzy top-left tabs-selected a href=#frMap style=text-decoration: none; text-indent: 5px; b class=xtopb class=xb1/bb class=xb2 color_a/b b class=xb3/bb class=xb4 color_a/b/b span class=xboxcontenth1Map/h1/span/a/li --- the problem is when i try to find $('li').hasClass('.tabs-selected'), or $('li').is('.tabs-selected') it returns me undefined... but it exists in the generated html..how can i find that class.
[jQuery] Re: implemented css class not in html but is in generated html, failed to find
This should definitely work, with a live test page it would be much easier to say anything about it. What version of jQuery are you using and on which browser does it occur? On Jan 16, 2:48 pm, CreativeMind aftab.pu...@gmail.com wrote: $('li.tabs-selected') also shows undefined.. i m unable to find li with the help of class 'tabs-selected'.. On Jan 16, 1:28 am, Balazs Endresz balazs.endr...@gmail.com wrote: Now that's another one: $('li').hasClass('.tabs-selected') and $('li').is('.tabs-selected') only tell you if li has that class or not, if you want to select by class do this: $('li.tabs-selected') On Jan 15, 9:11 pm, CreativeMind aftab.pu...@gmail.com wrote: hi, here is the html source of a list. li class=xsnazzy a href=#frMap style=text-decoration:none;text-indent:5px;b class='xtop' b class='xb1 '/bb class='xb2 color_a'/bb class='xb3 '/b b class='xb4 color_a'/b/bspan class=xboxcontent h1Map/h1/span/a/li -- here is the generated html source of a list. li class=xsnazzy top-left tabs-selected a href=#frMap style=text-decoration: none; text-indent: 5px; b class=xtopb class=xb1/bb class=xb2 color_a/b b class=xb3/bb class=xb4 color_a/b/b span class=xboxcontenth1Map/h1/span/a/li --- the problem is when i try to find $('li').hasClass('.tabs-selected'), or $('li').is('.tabs-selected') it returns me undefined... but it exists in the generated html..how can i find that class.
[jQuery] Re: implemented css class not in html but is in generated html, failed to find
jQuery1.2.4 and browsers are IE and ff..the html source view of both browsers shows single class implemented that is 'xsnazzy' but the generated source of both browsers shows three classes implemented (xsnazzy top-left tabs-selected).. On Jan 16, 7:41 pm, Balazs Endresz balazs.endr...@gmail.com wrote: This should definitely work, with a live test page it would be much easier to say anything about it. What version of jQuery are you using and on which browser does it occur? On Jan 16, 2:48 pm, CreativeMind aftab.pu...@gmail.com wrote: $('li.tabs-selected') also shows undefined.. i m unable to find li with the help of class 'tabs-selected'.. On Jan 16, 1:28 am, Balazs Endresz balazs.endr...@gmail.com wrote: Now that's another one: $('li').hasClass('.tabs-selected') and $('li').is('.tabs-selected') only tell you if li has that class or not, if you want to select by class do this: $('li.tabs-selected') On Jan 15, 9:11 pm, CreativeMind aftab.pu...@gmail.com wrote: hi, here is the html source of a list. li class=xsnazzy a href=#frMap style=text-decoration:none;text-indent:5px;b class='xtop' b class='xb1 '/bb class='xb2 color_a'/bb class='xb3 '/b b class='xb4 color_a'/b/bspan class=xboxcontent h1Map/h1/span/a/li -- here is the generated html source of a list. li class=xsnazzy top-left tabs-selected a href=#frMap style=text-decoration: none; text-indent: 5px; b class=xtopb class=xb1/bb class=xb2 color_a/b b class=xb3/bb class=xb4 color_a/b/b span class=xboxcontenth1Map/h1/span/a/li --- the problem is when i try to find $('li').hasClass('.tabs-selected'), or $('li').is('.tabs-selected') it returns me undefined... but it exists in the generated html..how can i find that class.
[jQuery] Re: implemented css class not in html but is in generated html, failed to find
Try 1.2.6 or 1.3! There was some problem with 1.2.4 and 1.2.5, it was very quickly updated to 1.2.6. On Jan 16, 3:54 pm, CreativeMind aftab.pu...@gmail.com wrote: jQuery1.2.4 and browsers are IE and ff..the html source view of both browsers shows single class implemented that is 'xsnazzy' but the generated source of both browsers shows three classes implemented (xsnazzy top-left tabs-selected).. On Jan 16, 7:41 pm, Balazs Endresz balazs.endr...@gmail.com wrote: This should definitely work, with a live test page it would be much easier to say anything about it. What version of jQuery are you using and on which browser does it occur? On Jan 16, 2:48 pm, CreativeMind aftab.pu...@gmail.com wrote: $('li.tabs-selected') also shows undefined.. i m unable to find li with the help of class 'tabs-selected'.. On Jan 16, 1:28 am, Balazs Endresz balazs.endr...@gmail.com wrote: Now that's another one: $('li').hasClass('.tabs-selected') and $('li').is('.tabs-selected') only tell you if li has that class or not, if you want to select by class do this: $('li.tabs-selected') On Jan 15, 9:11 pm, CreativeMind aftab.pu...@gmail.com wrote: hi, here is the html source of a list. li class=xsnazzy a href=#frMap style=text-decoration:none;text-indent:5px;b class='xtop' b class='xb1 '/bb class='xb2 color_a'/bb class='xb3 '/b b class='xb4 color_a'/b/bspan class=xboxcontent h1Map/h1/span/a/li -- here is the generated html source of a list. li class=xsnazzy top-left tabs-selected a href=#frMap style=text-decoration: none; text-indent: 5px; b class=xtopb class=xb1/bb class=xb2 color_a/b b class=xb3/bb class=xb4 color_a/b/b span class=xboxcontenth1Map/h1/span/a/li --- the problem is when i try to find $('li').hasClass('.tabs-selected'), or $('li').is('.tabs-selected') it returns me undefined... but it exists in the generated html..how can i find that class.
[jQuery] Re: implemented css class not in html but is in generated html, failed to find
I don't see any elements with that classname inside a span. On Jan 15, 7:24 pm, CreativeMind aftab.pu...@gmail.com wrote: hi, here is the html source of a list. li class=xsnazzy a href=#frMap style=text-decoration:none;text-indent:5px;b class='xtop' b class='xb1 '/bb class='xb2 color_a'/bb class='xb3 '/b b class='xb4 color_a'/b/bspan class=xboxcontent h1Map/h1/span/a/li -- here is the html source of a list. li class=xsnazzy top-left tabs-selected a href=#frMap style=text-decoration: none; text-indent: 5px; b class=xtopb class=xb1/bb class=xb2 color_a/b b class=xb3/bb class=xb4 color_a/b/b span class=xboxcontenth1Map/h1/span/a/li --- the problem is when i try to find $('li span').find('.tabs-selected'), it returns me undefined... but it exists in the generated html..how can i find that class.
[jQuery] Re: implemented css class not in html but is in generated html, failed to find
hi, here is the html source of a list. li class=xsnazzy a href=#frMap style=text-decoration:none;text-indent:5px;b class='xtop' b class='xb1 '/bb class='xb2 color_a'/bb class='xb3 '/b b class='xb4 color_a'/b/bspan class=xboxcontent h1Map/h1/span/a/li -- here is the generated html source of a list. li class=xsnazzy top-left tabs-selected a href=#frMap style=text-decoration: none; text-indent: 5px; b class=xtopb class=xb1/bb class=xb2 color_a/b b class=xb3/bb class=xb4 color_a/b/b span class=xboxcontenth1Map/h1/span/a/li --- the problem is when i try to find $('li').hasClass('.tabs-selected'), or $('li').is('.tabs-selected') it returns me undefined... but it exists in the generated html..how can i find that class.
[jQuery] Re: implemented css class not in html but is in generated html, failed to find
Now that's another one: $('li').hasClass('.tabs-selected') and $('li').is('.tabs-selected') only tell you if li has that class or not, if you want to select by class do this: $('li.tabs-selected') On Jan 15, 9:11 pm, CreativeMind aftab.pu...@gmail.com wrote: hi, here is the html source of a list. li class=xsnazzy a href=#frMap style=text-decoration:none;text-indent:5px;b class='xtop' b class='xb1 '/bb class='xb2 color_a'/bb class='xb3 '/b b class='xb4 color_a'/b/bspan class=xboxcontent h1Map/h1/span/a/li -- here is the generated html source of a list. li class=xsnazzy top-left tabs-selected a href=#frMap style=text-decoration: none; text-indent: 5px; b class=xtopb class=xb1/bb class=xb2 color_a/b b class=xb3/bb class=xb4 color_a/b/b span class=xboxcontenth1Map/h1/span/a/li --- the problem is when i try to find $('li').hasClass('.tabs-selected'), or $('li').is('.tabs-selected') it returns me undefined... but it exists in the generated html..how can i find that class.