views:

97

answers:

1

Hello,

This is the final output Output

My HTML

<li id='$id'>TEXT
    <ul class='indent'>
        <li id='$id'>TEXT</li>
        <li id='$id'>TEXT</li>
        <li class='formContainer'> FORM </li>
    </ul>
</li>

I want to append a li between form after all other li So in this example new li will be appended between Test141 APPEND Input Box

The $id are db ids of li which are unique

+1  A: 
$('#$id > li:last').before('<li />');

would be your best bet.

Matt