parnt.length isn't zero so if you are still using that test could the
the problem think about it a second, if you assign $(this).parent() to it how can length be zero? also you have a syntax error $(this).insertBefore(p)// should have quotes around p unless it is a variable if you aren't using firebug it's very worth installing in firebug get an error p not defined, firebug lets you test code right in console of FF, also you can see the live html changes that are made by jquery Bruce MacKay wrote: Thanks Mauricio, I hadn't tried that angle, but unfortunately it didn't make any difference. |
- [jQuery] Removing an emptied paragraph from t... Bruce MacKay
- [jQuery] Re: Removing an emptied paragra... Mauricio (Maujor) Samy Silva
- [jQuery] Re: Removing an emptied par... Bruce MacKay
- [jQuery] Re: Removing an emptied... Charlie
- [jQuery] Re: Removing an emptied paragra... liam193