I want to get the value of my myInput
id assigned to sessionStorage.setItem
. I used the function document.getElementById("myInput").value
. When I display the myInput
for sessionStorage.setItem
there it gives me nothing.
How can I assign the value to the sessionstorage,
Any help would be appreciated!
You have called two functions in the onClick attribute. But the syntax is wrong!
Correct Syntax is :
onclick="fun1(); fun2();"
Change the following :
<button onclick="myfilter(), mydisplay();">Filter</button>
To this:
<button onclick="myfilter(); mydisplay();">Filter</button>
This will now satisfy your requirement! Working Fiidle: Working JSFiddle
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.