value was "" blank when refreshing the page manually

Posted by crisgomez on Stack Overflow See other posts from Stack Overflow or by crisgomez
Published on 2010-05-19T08:25:34Z Indexed on 2010/05/19 8:30 UTC
Read the original article Hit count: 247

Filed under:
|
|

Hi, I have a problem regarding the maintaining of value when page was refresh.I assign a value into a hidden control using javascript below:

function displaytab(tabID) {
   var tabId = document.getElementById("ctl00_MainContent_tabId"); 
    switch (tabID) {
        case 1:
          tabId.value=1;
          break;
        case 2:
          tabId.value=2;

          break;
        case 3:
          tabId.value=3;

          break;
        default:
         tabId.value=0;

           break;     
     }

but when i refresh the page the value was ("") blank. Is there any way how to resolved this issue? or what is the best way to do this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about page