Problem getting JSON variable from another file

I’m trying to get an Object from my file called load.php, I’m trying to get the information from load.php every 5s. For some reason, I could make one part of it, but I can’t seem to get the other variable. <script type=”text/javascript” src=”jquery-3.4.1.min.js”></script> <script type=”text/javascript”> $(document).ready(function (){ setInterval(function () { $.getJSON(‘load.php’, function(sensors) { if (sensors)…

How to get additional rows dynamically when we click on submit button in angularjs by

This is my html code here i had two fields like category and multiple select column. <!Doctype html> <html> <head> <meta charset=”utf-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css”> <script src=”https://code.jquery.com/jquery-3.4.1.min.js” integrity=”sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=” crossorigin=”anonymous”></script> <script src=”https://code.jquery.com/jquery-3.2.1.slim.min.js” integrity=”sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN” crossorigin=”anonymous”></script> <script src=”https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js” integrity=”sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q” crossorigin=”anonymous”></script> <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js” integrity=”sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl” crossorigin=”anonymous”></script> <link rel=”stylesheet” href=”style.css”> </head> <body> <main ng-app = “myApp”> <div…

How can I instantly update my selector dropdown value in jquery?

I write the following code; var region = $(‘#inputGroupSelect01’).val() region = $(‘#inputGroupSelect01’).change(function() { $(this).val() }) console.log(region) The console shows k.fn.init(1). But I want $(this).val() will update the vaule of region variable. How can I set $(this).val() to region on change event? Edit 1 I want this region variable in hazard section. like this way; var…

How can I instantly update my selector dropdown value in jquery?

I write the following code; var region = $(‘#inputGroupSelect01’).val() region = $(‘#inputGroupSelect01’).change(function() { $(this).val() }) console.log(region) The console shows k.fn.init(1). But I want $(this).val() will update the vaule of region variable. How can I set $(this).val() to region on change event? Edit 1 I want this region variable in hazard section. like this way; var…