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.

Ajax Contact Form with an Attachment (jQuery & PHP)

Today let’s create an Ajax based contact form, that will allow users to send attachments in email message. This tutorial has been updated recently and is based on my recent post here. I’ve added Ajax part to the the example here, it will send form data without refreshing the page.

50 CSS3 button examples with effects & animations

Are you looking for some CSS3 buttons, which are good enough to be used in real-world website projects? here are some CSS3 buttons you might like. Since my last post about codepen buttons, I’ve been searching sites like codepen, cssdeck and jsfiddle for some good practical buttons and I’m amazed to find so many cool CSS3 buttons with nice effects and animations.

100+ Free Background textures & patterns for websites

Do you ever get tired searching for that perfect texture patterns for your new website? Here I’ve collected 100+ textures for you from the net, you can freely download right from here and use them on your projects. Just click on the texture you like for a live demo, and right-click to save it on your computer.