how to get two word from a input field and make url based on another field – Jquery
here i have two input field as like $(document).ready(function() { $("#business_name").keyup(function() { var Text = $(this).val(); Text = Text.toLowerCase(); Text = Text.replace(/[^a-zA-Z0-9]+/g,'-'); $("#business_url").val(Text); }); }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <input type="text" id="business_name" name="business_name" placeholder="Business Name" /> <br><br> <input type="text" id="business_url" name="business_url" placeholder="Business…