All jQuery Codes

jQuery code to allow numbers, alphabets or specific characters

There is a general requirement in many projects where for certain fields or input only numeric, alphabets, specific character or set of characters must be allowed. For example, When you are requesting input for Phone number or Zip code from the end-user, then you don't want to allow user to enter any alphabets. There are […]
Read the rest of this entry »

Disable Cut, Copy and Paste function for textbox using jQuery

Today my client asked me to disable cut, copy and paste functionality for the Textbox, which means User should not be allowed cut or copy text from the Textbox and also to paste text within Textbox. Well, it is very easy to do this using jQuery. All you need is to bind cut, copy and […]
Read the rest of this entry »

Set Max Length for ASP.NET MultiLine Textbox using jQuery

ASP.NET textbox has a property called "MaxLength", which restrict the end-user from entering characters beyond specified MaxLength. This property works like a charm for ASP.NET textbox but it does not work with ASP.NET MultiLine textbox. In this post, I will show you how we can implement Maxlength property for ASP.NET MultiLine textbox using jQuery. Let's […]
Read the rest of this entry »

Enable/Disable all text boxes using jQuery

In my previous post "jQuery code to disable-enable all controls of page", we saw how can we disable all the controls of the page. For my project, we had requirement where we need to disable only the text boxes not all the controls. It was not tough with jQuery. Few minutes of work. See below […]
Read the rest of this entry »

Disable-Enable all controls of page using jQuery

In this post, I will demonstrate a simple jQuery code to disable and enable all the controls of the page. jQuery provides (*) selector, which selects all the element of the page. We will use the * selector to disable and enable all the elements. For demo purpose, we will disable and enable controls on […]
Read the rest of this entry »

How to scroll to the bottom of a textarea using jQuery

Today I came across a situation where in textarea control, text was appended from code behind (.NET code) on button click. But the actual concern was that appended text is not visible to the end user as textbox area shows text from the top. So I looked into jQuery to find solution of it and […]
Read the rest of this entry »

Responsive Menu
Add more content here...