Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
1,564
Widok
0
28/08/2018 10:56 am
Topic starter
how to set initial value of data
1 Answer
0
28/08/2018 10:57 am
Topic starter
workaround, approach 1.
1 2 3 4 |
data: { myVar1: parseInt(document.querySelector("input[name=value]").value), myVar2: parseInt(document.querySelector("#idOfMyObject").getAttribute("atrributeName")), }, |
data: { myVar1: parseInt(document.querySelector("input[name=value]").value), myVar2: parseInt(document.querySelector("#idOfMyObject").getAttribute("atrributeName")), },