[jQuery] How to check if a DIV with ID xyz exist?

2009-10-27 Thread bc04Inc.
Hi, how can i check if a DIV with the ID xyz exist? thank you yavuz

[jQuery] Re: How to check if a DIV with ID xyz exist?

2009-10-27 Thread bc04Inc.
use the above anyways) if ($(#xyz).length 0) {       // exists} else {       // does not exist } On Oct 27, 9:37 am, bc04Inc. bc04...@googlemail.com wrote: Hi, how can i check if a DIV with the ID xyz exist? thank you yavuz- Zitierten Text ausblenden - - Zitierten Text

[jQuery] Re: How can i set a number inside a h1 tag before the text starts?

2009-10-26 Thread bc04Inc.
Hi, i solved one problem. I can change the text inside a tag with the .prepend method. But i dont know how to extend the above jquery function to number my table of contents like 1. 2. 2.1. 2.2. 2.2.1 2.3 3. regards yavuz On 23 Okt., 16:44, bc04Inc. bc04...@googlemail.com wrote

[jQuery] Re: How can i set a number inside a h1 tag before the text starts?

2009-10-26 Thread bc04Inc.
I have solved it! Now after 3 days of hard work :) it works! regards yavuz On 26 Okt., 12:00, bc04Inc. bc04...@googlemail.com wrote: Hi, i solved one problem. I can change the text inside a tag with the .prepend method. But i dont know how to extend the above jquery function to number my

[jQuery] Re: How can i set a number inside a h1 tag before the text starts?

2009-10-23 Thread bc04Inc.
Noone an idea how to solve that? Thank you On 22 Okt., 15:46, bc04Inc. bc04...@googlemail.com wrote: So here is the function: script type=text/javascript         (function($) {   $.toc = function(tocList) {     $(tocList).addClass('jquery-toc');     var tocListArray = tocList.split

[jQuery] How can i set a number inside a h1 tag before the text starts?

2009-10-22 Thread bc04Inc.
Hi, i am using the table of contents function of rebecca murphey. The script works fine, but i need to extend itin two ways. 1. set a number for each toc element? 2. set exactly this number to he h1 inner html in fron of the text? So that the result is: 1. Head 1 2. Head 2 … … 1. Head 1

[jQuery] Re: How can i set a number inside a h1 tag before the text starts?

2009-10-22 Thread bc04Inc.
can't you just wrapper the head tag in an ol? or do you need to change the h tag level to a different level? - Original Message - From: bc04Inc. bc04...@googlemail.com To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, October 22, 2009 1:24 AM Subject: [jQuery] How can