The only way to attempt to accomplish that would be to read the innerHTML, append the </div> in text, and rewrite the innerHTML for the select_chalet_content divs. However, since the HTML is improper and the divs are not closed, jQuery could potentially grab anything to *everything* after <div class="select_chalet_content">, making an such a fix impossible. You would have a better time having PHP parse the text IMO, since you know the structure. I'm with Benjamin, this is really a major flaw from the developers and I can't imagine them not fixing the incomplete code.
Charles On Oct 28, 5:56 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > Maurice, > I really would suggest that you get with the booking app developer and have > them fix it. This is, assuming you guys made no change to the app, a bug in > the app and would/should fall back to them. Did you call them to find out > if this is a known issue and if they will send you an updated file? > > Ben > > On 10/28/07, Maurice Kroon <[EMAIL PROTECTED]> wrote: > > > > > > > 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.. > > -- > Benjamin > Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.comhttp://www.benjaminsterling.com