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); }); });…