How can I display the next letters of a select field value? – Jquery
Let's say I have a select field $('#myselect').on('change' , function() { var a = $('#result'); select = $(this).val(); // Get the value selectValue=$(this).find(':selected').data("value"); a.find('.b').html(selectValue); }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js" integrity="sha512-STof4xm1wgkfm7heWqFJVn58Hm3EtS31XFaagaa8VMReCXAkQnJZ+jEy8PCC/iT18dFy95WcExNHFTqLyp72eQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <select id="myselect" style="" name="select[]" class="select"> <option data-value="ABC">My product</option> <option data-value="BCD">My…