Witam, mam kod:
<select name="pos_vat" id="input_pos_vat" onchange="document.getElementById('input_pos_wvat').value = this.innerHTML" style="width:100%;background-color:#B3FFEC;"> <option value="0.00." {if $smarty.post.pos_vat == "n.p."}selected="selected"{/if}>n.p.
</option> <option value="0.00" {if $smarty.post.pos_vat == "zw."}selected="selected"{/if}>zw.
</option> <option value="0.00" {if $smarty.post.pos_vat == "0.00"}selected="selected"{/if}>0%
</option> <option value="0.03" {if $smarty.post.pos_vat == "0.03"}selected="selected"{/if}>3%
</option> <option value="0.07" {if $smarty.post.pos_vat == "0.07"}selected="selected"{/if}>7%
</option> <option value="0.22" {if $smarty.post.pos_vat == "0.22"}selected="selected"{/if}>22%
</option> <input type="text" name="pos_wvat" value="" id="input_pos_wvat" />
Nie bardzo wiem jak do pola o id="input_pos_wvat" wsadzić tekst pomiędzy <option></option>. Dając innerHTML wstawia mi całą listę a chcę tylko tekst opisu.
Porszę o naprowadzenie jak to zrobić.
Pozdrawiam,
Michał.