skip to Main Content

How to POST two parameters in PHP using Ajax – Jquery

I want to pass two parameters into the function getStuName() but found that there is error. Can anyone help me with the syntax? <script language="javascript"> function getStuName1(val, val1) { if(val!=''){ $.ajax({ type: "POST", url: "get_stuname1.php", data:'yr='+val+'&classname='+val1, success: function(data){ $("#stu-list1").html(data); }…

VIEW QUESTION

How to split words of an input by space – Laravel

I have a Laravel 9 forum project and I have added this form field: <div class="create__section"> <label class="create__label BMehrBold" for="tags">Tags (separate each one by [space])</label> <input type="text" class="form-control BKoodakBold" id="tags" placeholder="Enter the keywords here"> <span id="tagshow"></span> </div> So as you…

VIEW QUESTION
Back To Top
Search