Notes From Week of May 14
From this week onward, I will be keeping notes for some of the issues I encountered during work or developing some of my personal works.
Here are notes from my development last week:
This might be a quite simple one, but I found it might be useful for future reference. In the development of TIA, previous developer used to disable the checkbox in a form. The result of this is the value of the disabled checkboxes were not submitted with the form. The previous developer opt to set the checkboxes separately which I don't believe is an ideal solution. I thereby found another solution as follows:
However, this is not enough in my case, I also need to have it gray out to make it looks like disabled. It turned out that this can be solved via simple CSS:
opacity : .50;
filter : alpha(opacity=50); /* IE<9 */
cursor : default;
Just make sure to give the checkbox proper class name.