Read only all filed in Tab
Posted: 01 Jul 2019
Hello
I want all fields(text, text area ,drop down box ) read only within one tab using one line javascript. How can we do it?
I use the following code.But can't control all field in each tab using Internet Explorer Browser.
$('div [id*="fd_tabcontrol-0-tab-"]').not("#fd_tabcontrol-0-tab-2,#fd_tabcontrol-0-tab-5").find("td.ms-dtinput > a").attr('onclick','disable').unbind('click').css('display','none');
$('div[id*="fd_tabcontrol-0-tab-"]').not("#fd_tabcontrol-0-tab-2,#fd_tabcontrol-0-tab-5").find("input,textarea,select").css({'pointer-events':'none',"background-color": "#F6F6F6"});
I want all fields(text, text area ,drop down box ) read only within one tab using one line javascript. How can we do it?
I use the following code.But can't control all field in each tab using Internet Explorer Browser.
$('div [id*="fd_tabcontrol-0-tab-"]').not("#fd_tabcontrol-0-tab-2,#fd_tabcontrol-0-tab-5").find("td.ms-dtinput > a").attr('onclick','disable').unbind('click').css('display','none');
$('div[id*="fd_tabcontrol-0-tab-"]').not("#fd_tabcontrol-0-tab-2,#fd_tabcontrol-0-tab-5").find("input,textarea,select").css({'pointer-events':'none',"background-color": "#F6F6F6"});