I have a hidden field and a text field called hdStrField, txtStrField . Now I assign the value for hdStrField field like this.

    document.forms[0]. hdStrField.value=’ txtStrField';

    Now I want to change assigned hdStrField field value  as read only. Give some suggestions for getting this functionality.    
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.