wyo wrote:
The class is reserved for other uses or is it possible to assign
multiple classes. Besides does "addClass" add another class to an
object or does it replace the existing class?
Of course an element can have multiple classes:
foo
You can get it with $('a.second') or $('a.third'), y
On Jan 31, 3:38 pm, Giovanni Battista Lenoci <[EMAIL PROTECTED]>
wrote:
> wyo ha scritto:
>
>
>
> Why don't you declare the function outside the document.ready ?
>
Since I want to use the function during startup but prevent it from
being used before document.ready and I want to use it afterwards.
Have you tried putting the fn outside of document ready, and then
calling it in both document ready and the onclick?
Btw, you don't put the "javascript:" in an onclick, only in a href,
that might cause problems too...
On Jan 31, 1:44 pm, wyo <[EMAIL PROTECTED]> wrote:
> I've some functions which
wyo ha scritto:
I've some functions which I'd like to use outside of jQeury in normal
HTML, e.g.
$(document).ready(function() {
function collapse (i) {
$('#expanded_'+i).hide();
}
});
...
...
What do I have to write at the onclick?
Why don't you d
4 matches
Mail list logo