2
How do I tabulate a sentence and put one under the other ? Let me explain to you: I’m using this code to add inside a div:
<script type="text/javascript">
$(document).ready(function() {
$('#cbo_vitrine').change(function(){
itemsel = $("#cbo_vitrine option:selected").text();
if(itemsel == "REF-01")
$("#det_prod_vitrine").append("FLOR BATIDO - MARROM - Nº: 23 ao 41 - R$34,99");
if(itemsel == "REF-02")
$("#det_prod_vitrine").append("MEDALHÃO - MARROM - Nº: 33 ao 44 - R$34,99");
//if(itemsel == "REF-...")
});
});
</script>
I select it in a select and add it with append. Only it’s getting a little bumpy. Detail: I’m not bringing anything database and yes it’s static. Someone suggest something more practical or guide me to tabulate ?? Grateful teachers.