Quote:
Originally Posted by acoder
Welcome to TSDN!
When you say refresh, do you mean after submitting the form or if the user presses, say, F5?
If it's after submitting, the server-side code should deal with that by adding to the database and showing the correct colour.
If it's after refresh, you'll need cookies to store the information when a cell is clicked on. See this link on cookies.
Hiya,
Thank you for your welcome.
The user will need to select a different part of a calendar which will be a new page and not submitted so I think cookies will be the best answer as I assume it will hold the values until he confirms the dates.
What I wanted to know is how to change the value of the hidden field so that I can see what the user has selected. 1,2 is the co-ordinates of the cell. row 1, cell 2 and so on. when they select that cell I would like to concantenate selected onto the 1,2 string. I had this example before but when I went to view the source I did not see a change. Is this because I need to use cookies? The code to change the values is below.
Thank you so much for your help.
Kind regards
anonymousstar
document.getElementByID().value= " + selected";