-
Notifications
You must be signed in to change notification settings - Fork 0
/
JsFile.js
58 lines (57 loc) · 1.66 KB
/
JsFile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
$(function () {
// ON SELECTING ROW
$(".gfgselect").click(function () {
//FINDING ELEMENTS OF ROWS AND STORING THEM IN VARIABLES
var a =$(this).parents("tr").find(".gfgusername").text();
var c =$(this).parents("tr").find(".gfgpp").text();
var d =$(this).parents("tr").find(".gfgscores").text();
var p = "";
// CREATING DATA TO SHOW ON MODEL
p +="<p id='a' name='GFGusername' >Account No: "+ a + " </p>";
p +="<p id='c' name='GFGpp'>Name: "+ c + "</p>";
p +="<p id='d' name='GFGscores' >Current Balance: "+ d + " </p>";
//CLEARING THE PREFILLED DATA
$("#divGFG").empty();
//WRITING THE DATA ON MODEL
$("#divGFG").append(p);
});
});
function myFunction1() {
var r = confirm("Are you sure you want to cancel the trasaction?\n"+"Press Ok to confirm");
if (r == true) {
document.getElementById("form1").action;
return true;
} else {
return false;
}
}
function myFunction2() {
var r = confirm("Are you sure you want to cancel the trasaction?\n"+"Press Ok to confirm");
if (r == true) {
document.getElementById("form2").action;
return true;
} else {
return false;
}
}
function myFunction3() {
var r = confirm("Are you sure you want to cancel the trasaction?\n"+"Press Ok to confirm");
if (r == true) {
window.location.href="./HomePage.html";
return true;
} else {
return false;
}
}
function show()
{
var c=document.getElementById("c");
var d=c.innerHTML;
const arr=d.split(" ")
localStorage.setItem("name",arr[1]+ " "+arr[2]);
location.href="./Transfer.html";
}
function show2(d)
{
document.getElementById("fname").value=localStorage.getItem("name");
}