skip to Main Content

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…

VIEW QUESTION

Get a form ID from html response of an ajax call (jQuery)

The following is my ajax $.ajax({ url: formUrl, complete :function(){ $("#formContainer").removeClass("some-class"); }, success: function(response){ $("#formContainer").html(response); initFunctionOne(); initFunctionTwo(); initFunctionThree(); } }); } 'response' contains respective html forms in string format depending on what screen is being loaded. Is there any way…

VIEW QUESTION
Back To Top
Search