[Solved] Select OnChange


HTML:

<span id="mybadge" class="badge badge-primary">$10</span>

<select id="myselect">
 <option value="$10">$10 Item</option>
 <option value="$20">$20 Item</option>
</select>

Javascript:

$('#myselect').change(function(){
    $('#mybadge').text($(this).val());
});

Working jsFiddle ->> http://jsfiddle.net/sUBWd/5/

0

solved Select OnChange