Monday, December 26, 2016

Disable Date Time Picker Control on NewForm.aspx, Edit Form.aspx using JQuery in SharePoint

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>    
<script type="text/javascript">  
$(function() {   
$( "td.ms-dtinput > input[id$='DateTimeFieldDate']" ).attr('readonly''readonly');
$( "td.ms-dtinput > a" ).attr('onclick','').unbind('click');   
});
</script> 

No comments:

Post a Comment

Clearing Person/Group Values

To clear out or empty the values in person or group columns, how you do it depends on if the column is single-value or multi-value. For ...