I have added a textbox to SharePoint as part of my project(
<input id="Text1" class="textbox" style="" type="text" readonly />). I need to show hide the text box based on certain condition. i am unable to do so based with below
document.getElementById("Text1").style.display = 'none';
document.getElementById("Text1").style.display = 'block';
both are not working.
i have attempted to remove border and put an under line to the text box. But for some reason the below styling is not working with SharePoint.