In your Textbox use the following properties and value to make Textbox
Copy Restricted
Cut Restricted
Paste Restricted
oncopy="return false"
oncut="return false"
onpaste="return fals...
Monday, August 11, 2014
How to Make a Textbox “No Spaces” using Javascript
Use this code in the "head" .... section
function
nospaces(t){
if(t.value.match(/\s/g)){
alert('Sorry,
you are not allowed to enter any spaces');
t.value=t.value.replace(/\s/g,'');
}
}
function nospaces(t){
if(t.value.match(/\s/g)){
alert('Sorry, you are...
Subscribe to:
Posts (Atom)