Hello Everyone,
how to show the description ( ajax search result )
//Javascript AJAX Loader for Items
if(shower.find('div[data-item-id="' + data[key].pk_i_id + '"]').length <= 0) {
result += '<a class="option" data-item-id="' + data[key].pk_i_id + '" href="' + data[key].item_url + '" title="<?php echo osc_esc_js(__('Click to open listing', 'veronika')); >">'
result += '<div class="left"><img src="' + data[key].image_url + '"/></div>';
result += '<div class="right">';
result += '<div class="top">' + data[key].s_title + '</div>';
result += '<div class="middle_desc">' + data[key].s_description + '</div>'; result += '<div class="bottom">' + data[key].i_price + '</div>';
result += '</div>';
result += '</a>';
}
}
i add this code
'<div class="middle_desc">' + data[key].s_description + '</div>' , but the description still not show , it say "undefined".
any suggestions ?