> i'm new to jquery and have a problem with a ul. i'm trying to get the
> value of p from the list can someone help me out?
>
> jquery->
>
> $(".menu_item").click(function(){
> if ($(this).('p').text = 'Home')
> {
> window.location.href="index.html";
> }
> })
this are the P ;)
try so:
$(".menu_item").click(function(){
if ($(this).text() == 'Home') {
window.location.href="index.html";
}
});
Why you used not a "normel" menu with A (links) in? Without JS your menu
are unusable.
--
Viele Grüße, Olaf
-----------------------------------
olaf.bosch@t-online.de
http://olaf-bosch.de/
http://ohorn.info/
http://www.akitafreund.de/
-----------------------------------
No comments:
Post a Comment