In this article we are able to see how to allow to enter
only numbers in a Textbox using JQuery/Java Script.
Could not save the list changes to the server SharePoint designer 2013
Disable list throttling SharePoint using PowerShell
Could not save the list changes to the server SharePoint designer 2013
Disable list throttling SharePoint using PowerShell
We are having a column with name ZIP, in that we are
allowing users to enter only numbers, we designed the form and based on the
title we are getting the field, using Keydown function. we are using the below code .
<script language="javascript"
type="text/javascript">
$(document).ready(function() {
$('input[title="ZIP"]').bind("keydown",
function (event) {
if ( event.keyCode
== 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 ||
event.keyCode == 13 ||
(event.keyCode == 65 && event.ctrlKey === true) ||
(event.keyCode >= 35 && event.keyCode <= 39)) {
return;
}
else {
if
(event.shiftKey || (event.keyCode < 48 || event.keyCode > 57) &&
(event.keyCode < 96 || event.keyCode > 105
)&&(event.keyCode!=190)&&(event.keyCode!=110)) {
event.preventDefault();
}
}
});
});
</script>