Thanks to Dave Methvin, it runs. I didn't try Kean's solution, because David's was simpler, but thanks too.
And I have one more question: <fieldset id="div"> <dl> <dd>...something...</dd> </dl> <dl> <dd>...something...</dd> </dl> ... ... ... </fieldset> JS: if(previous dl == first dl) - how can I check if previous of 'this dl' is the first 'dl', e.g. I have this JS in second 'dl', and of course, previous 'dl' is the first. But if I have it in third 'dl', previous is not first. Thanks.