I am a VB.net programer and I am very new to PHP HTML and Java Scripts
I am doing a project for my company using PHP HTML and Java Scripts and I want to Know how to make readonly a text box after it gets the input
This text box should first get the input and based on that input display other data to the user then it should be read only because it is the key field for the other displayed information
I tried a round with PHP and Javascrpits but could not find a solution
document.getElementById("RunNo").disabled = true;
document.forms["EditRun"]["RunningNo"].disabled="true";
document.getElementById("RunNo").readOnly="readonly";
document.getElementById("RunNo").setAttribute("readonly", "true");
document.getElementById('RunNo').readOnly=true;
the above code do not work
the first 2 works but when the text box is disable the textbox value cannot be used with the remaining code
the lase 3 do not work at all
Please help me:?: