[jQuery] Fixing divs with jquery (adding </div>)

[jQuery] Fixing divs with jquery (adding </div>)


Hi,
I've got a friend that bought a booking app a view months back. Now
there is something wrong with implementation, because every time a
particular (class="select_chalet") div is opened, it won't be closed.
So, instead of waiting for the fix & repair bill, i wanted to try
something else.
This is the code:
<!-- begin item -->
<div class="select_chalet">
    <div class="select_chalet_content">
        <div class="select_chalet_name">
            <!-- name + info chalet -->
    </div>
</div>
<div class='select_chalet_status_free'>Clean</div>
    <!-- begin item -->
<div class="select_chalet">
    <div class="select_chalet_content">
        <div class="select_chalet_name">
            <!-- name + info chalet -->
    </div>
</div>
<div class='select_chalet_status_free'>Clean</div>
    <!-- begin item -->
As you can see, the first div, isn't closed before the next item is
started..
I wonder if I can search for comments, and so, append the </div> after
the comment. Is that possible (and how?)?
Thanks a lot guys, I really appreciate it..
Regards,
Maurice Kroon
ps: for the guys that will ask why I just won't change the php code >
it's encrypted.. So the booking app firm must do it..