, no errors)
and remove problems. I think it should do it.
..:: sheshnjak ::..
www.tomislavdekovic.iz.hr
You should try this, and find your way through:
http://www.learningjquery.com/2007/03/accordion-madness
..:: sheshnjak ::..
www.tomislavdekovic.iz.hr
I'm not sure if this is what you're looking for, but I think it should
be satisfactory. Try to analize js.js file on my web site, I have some
functions separated in jQuery.extend({ ... })
link: http://www.tomislavdekovic.iz.hr/dizajn/js.js
..:: sheshnjak ::..
www.tomislavdekovic.iz.hr
is there a way to recursively roll out until you reach a parent
that matches a given id?
Here's the way to do it:
$(clickedElement).click(function(){
this.parent(#idOfWantedParent).doSomethingWithIt();
});
I think it should work this way, if not try to experiment with this or
$(this)...
Hi, you can envelope your for loop in an if statement to test for
boolean variable that will control execution like this:
var loopControl=true;
for (var=startvalue;var=endvalue;var=var+increment){
if(loopControl){
// your loop code goes here
}
}
and now, if you set
You're not loosing anything by modulizing. All event definitions will
still be included in your code (if you put them all in one js file, of
course). Only difference is that they are not all evaluated, just ones
you need. Win-win. Only thing you will loose is half an hour to put
things right.
On
It actually does have a performance impact, even though we can't
always see it on modern processors and javascript engines for
desktop browsers. If you consider users with handheld devices that
have functionality similar to PCs (and even take media=screen
instead of media=handheld for styling),
How can I have it not hover the last row too?
Just to expand a little on sheshnjak's point above, if it does sound like
it's a header and footer you're trying to differentiate. If that's the case,
may I suggest the more semantic thead and tfoot tags? They might come in
handy.
@Dean
You probably have something like this in HTML:
div class=targetLinkList
a href=1bla 1/abr /
a href=2bla 1/abr /
a href=3bla 1/abr /
/div
Put this in css, just for testing (to see if class is set properly):
a.clicked {background-color:red}
Finally, in write this in your jQuery js:
Hi, I think this should work for you:
- Basically, you have this in html:
div class=targetLinkList
a href=1bla1/abr /
a href=2bla2/abr /
a href=3bla3/abr /
/div
- To see the results put this in your css:
a.clicked {background-color: red}
- And finally, you should put this in js file:
Hello,
Karl already gave you clean solution that will surely work, but I
can't resist to give you solution that might be more suitable for your
needs.
I presume that you don't want hover effect on the first row because it
contains table header (field names for columns). If that's the fact,
then
11 matches
Mail list logo