[jQuery] can't change values in appended divs

2008-09-25 Thread kredd
hello all, i'm allowing users to append and remove divs at will. the divs are numbered. if there are 5 divs and user removes div #2 i need to subtract 1 from divs #3,4,5 so that they become divs #2,3,4. here is my appending code: $('#schematics_main').append("" + total_hotspots + "HS "+ (total

[jQuery] for loop not acting right

2008-09-23 Thread kredd
hello all, i'm allowing users to append and remove divs at will. the divs are numbered. if there are 5 divs and user removes div #2 i need to subtract 1 from divs #3,4,5 so that they become divs #2,3,4. here is my appending code: $('#schematics_main').append("" + total_hotspots + "HS "+ (total_