how to send the value of "text box" even if it is grayed out/disabled in HTML?

Posted by mujahid on Stack Overflow See other posts from Stack Overflow or by mujahid
Published on 2011-01-31T05:13:32Z Indexed on 2011/01/31 7:25 UTC
Read the original article Hit count: 140

I m doing like this in java script :

document.getElementById(XYZ).value = '32768';
document.getElementById(ABC).value = '32768 ';  
document.getElementById(XYZ).disabled = true;
document.getElementById(ABC).disabled = true;

when i m pressing submit it gives "0" as value. BUT i want to retrieve above values.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

readOnly is an option but it changes the FONT COLOUR from gray to black, but i want gray colored text in readOnly textbox

any help!!!!

thanx !!!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html