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 I'd like to use outside of jQeury in normal
> HTML, e.g.
>
>   <script type="text/javascript">
>     $(document).ready(function() {
>
>       function collapse (i) {
>         $('#expanded_'+i).hide();
>       }
>     });
>   </script>
>
> ...
>
>   <img src="images/plus01.png onclick="javascript: collapse (17)">
>   <div id="#expanded_17">...</div>
>
> What do I have to write at the onclick?

Reply via email to