HTML script for sending data to Firebase and retrieving data by that sent value.

Job ID: 32459189

Budget: £10 – £20 GBP

Part 1)

If a user clicks on a button with a specific ID I want to send a value to firebase. This needs storing for logged in users and firebase only needs to store the most recent button clicks value. This will be a number between 1 and 20. Store the value in users/uid/basic/buttonclick(value 1 to 20)

Part 2)

I have a set of data in firebase in the tab

-17rMIHWq3CtBducCR1CZa9MdfCRLkbdcB6NsNFwaI42A
-webflow3
-1 to 20
and then I have 6 data pieces (close, high, id, low, open, time)

I want to use the value for loggedin user from buttonclick to pull the close value from the relevant parent category. e.g if the buttonclick value is 10 then display the close value from 10.

This value needs to be displayed onto the webpage once pulled by ID.
Related categories: JavaScript HTML5 HTML Google Firebase