skip to Main Content

how to enter dynamic data to a javascript function after page load – Jquery

I have a select box which options are coming from database depending on another selected option using ajax $(document).ready(function(){ $("select.entity").change(function(){ var selectedEntity = $(".entity option:selected").val(); $.ajax({ type: "POST", url: "entityName.php", data: { entity : selectedEntity } }).done(function(data){ $("#entityName").html(data); }); });…

VIEW QUESTION

Parsing text area line that comma separated using Jquery or Js

I have a textarea with data like this (UserId,Name,Gender), and I want to parsing that data <textarea class="form-control" id="data" rows="5" cols="10" placeholder="ID's Phones Number:" name="msg">097544,markd amm,male 731490,Hossam Hassan,male 130578,Kamal Eldin,male 87078148,Muhammad Ahmad Atia,male 932484,Alia AlHorria,female 093779,Yaser Hadidi,male 39393,Soka Dą,female </textarea>…

VIEW QUESTION
Back To Top
Search