Suman24 commited on
Commit
d66897b
·
verified ·
1 Parent(s): c12a963

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +2 -2
script.js CHANGED
@@ -1,7 +1,7 @@
1
  window.onload = async function () {
2
  const queryParams = new URLSearchParams(window.location.search);
3
  const itemDescription = queryParams.get('itemDescription');
4
- alert("item" + itemDescription)
5
  if (!itemDescription) {
6
  alert("No item description provided!");
7
  return;
@@ -15,7 +15,7 @@ window.onload = async function () {
15
  }
16
 
17
  const data = await response.json();
18
-
19
  // Populate the fields with the data
20
  document.getElementById('item-description').value = data.ItemDescription || "N/A";
21
  document.getElementById('item-code').value = data.ItemCode || "N/A";
 
1
  window.onload = async function () {
2
  const queryParams = new URLSearchParams(window.location.search);
3
  const itemDescription = queryParams.get('itemDescription');
4
+ alert("item: " + itemDescription)
5
  if (!itemDescription) {
6
  alert("No item description provided!");
7
  return;
 
15
  }
16
 
17
  const data = await response.json();
18
+ alert("data " + data)
19
  // Populate the fields with the data
20
  document.getElementById('item-description').value = data.ItemDescription || "N/A";
21
  document.getElementById('item-code').value = data.ItemCode || "N/A";