LynnsAngelSavious
New Member
I have the following function:\[code\]function displayResults(Items) { $("#result").text(""); $("#result").append('<div class="car-offers">'); $("#result").append('<div class="purple"></div>'); $("#result").append('<img src="http://stackoverflow.com/questions/15764585/images/caroffer.jpg" alt="" title="" width="213" height="117" />'); $("#result").append('<h3>titleeee</h3>'); // ' + Items.Title + ' $("#result").append('<span>Year: 2003</span>'); $("#result").append('<span>Milage: 172,000 Km</span>'); $("#result").append('<span class="price">53,000 QR</span>'); $("#result").append('<a href="">Link</a>'); $("#result").append('</div>'); $("#result").append('<div class="car-offers">'); $("#result").append('<div class="purple"></div>'); $("#result").append('<img src="http://stackoverflow.com/questions/15764585/images/caroffer.jpg" alt="" title="" width="213" height="117" />'); $("#result").append('<h3>titlee22</h3>'); // ' + Items.Title + ' $("#result").append('<span>Year: 2003</span>'); $("#result").append('<span>Milage: 172,000 Km</span>'); $("#result").append('<span class="price">53,000 QR</span>'); $("#result").append('<a href="">Link</a>'); $("#result").append('</div>'); }\[/code\]my problem is that at run-time the html is being displayed like: \[code\]<div class="car-offers"></div>\[/code\] so all the page is being messed up