<form>
    <select name="package" id="package">
        <option>Paket 1</option>
        <option>Paket 2</option>
        <option>Paket 3</option>
    </select>

    <h4>Anda memilih: <span id="selected"></span></h4>
</form>
$('#package').on('change', function(){
  const selectedPackage = $('#package').val();
  $('#selected').text(selectedPackage);
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js