Simple Form validation jQuery snippet

There are plenty of powerful jQuery validation plugins out there to meet your needs, but sometimes your requirement is so little that you just don’t bother including these plugins into your page, you might just create your own simple validation for your Form. So here’s a simple jQuery validation script you can include in your form page and have almost powerful validation.

85 Best Premium WordPress Theme

There is a very thin line between being average and first rate. The former is something that many can achieve but the latter does not come so easy and to achieve it, you have to give your best. If we talk about blogs and websites, you know how tough the competition is. Still, things have become lot easier, thanks to WordPress. But you must note that it has become so for all those who use WordPress. So, how can you stand out?

Image Preview (Thumbnails) before uploading – jQuery

If you are creating an image uploader, you can provide thumbnail preview of currently selected images in file input field. We don’t need to upload entire file to server to do that. File API is supported by all modern browsers, we just need to take advantage of this feature, it provides us with information about files and allows to access their content.

Select All Text In Element on Click (JavaScript OR jQuery)

To select all text inside an element such as DIV, we can simply use JavaScript document.createRange() method to create a range, and than using range.selectNodeContents() we can set node range (start and end), after which use selection.addRange() to select the range of the element.