-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShowEmployee.js
96 lines (43 loc) · 1.5 KB
/
ShowEmployee.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import React, { Component } from 'react';
import './ShowEmployee.css'
import { devContract } from './setup';
export class ShowEmployee extends Component{
render(){
return(
<div>
<h3> Employee</h3>
<hr />
<table >
<tbody id="7">
<tr>
<th>Name</th>
<th>Mark</th>
</tr>
<tr>
<th>Grigore Mihai Alex</th>
<th>7</th>
</tr>
<tr>
<th>Stan Alex</th>
<th>10</th>
</tr>
<tr>
<th>Eva Evgnosia</th>
<th>10</th>
</tr>
<tr>
<th> <input type="text" id="demo"></input> </th>
<th> <input type="text" id="mark"></input> </th>
<th><button onClick="myFunction()" >Submit</button></th>
</tr>
</tbody>
</table>
</div>
)
function myFunction() {
devContract.name=document.getElementById("demo").innerText;
devContract.test_mark_os=document.getElementById("demo").innerText ;
}
}
}
export default ShowEmployee;