Author: Hiral Patel

jQuery Cheatsheet

jQuery is one of the most popular DOM manipulation library. This jQuery Cheatsheet is aimed at experienced jQuery developers. This is not complete reference to jQuery library. This jQuery Cheatsheet is my version of most commonly used jQuery DOM manipulations for quick reference. If you are new to jQuery, then take a look at jQuery Basics with Examples article. jQuery Selectors $(“*”) Select all DOM elements on the page. $(“#elementID”) Select all DOM elements with id = elementID. $(“.elementClassName”) Select all DOM elements with className = elementClassName. $(“element”) Select all DOM elements with given tag name. $(“div, span, input”)...

Read More

How to change workspace in Eclipse IDE

If you are working on multiple projects then its a good idea to create multiple workspace. Each workspace can have group of projects which are related. When you open eclipse it will ask you the workspace location to use, and it will load all projects in that location. Follow simple steps as below to change workspace in Eclipse IDE> Change Workspace in Eclipse IDE Step 1: Select File -> Switch Workspace -> Other Step 2: Select new workspace folder and Press Ok. Thats it!!! Eclipse will restart and new workspace. The new workspace is ready to work with. References...

Read More

Hello World in HTML5

Welcome to world of programming. I assume that you are starting with your programming career and so I will explain you in detail about how to write simple Hello World in HTML5. I use Sublime Text editor to write my HTML program, but you can use notepad, textedit, atom, bracket or any other text editor to write program. If you are interested in Sublime Text Plugins, Tips and Settings, then Check This. Create new file and paste below code. Save the file with index.html in your file system. Hello World in HTML5 <!DOCTYPE html> <html> <head> <title>This is Hello...

Read More

ArrayList in Java

ArrayList is dynamic array in java. It can grow as new contents are added into the arrayList. ArrayList in Java Example package blogCollections; import java.util.ArrayList; public class arraylistExample { public static void main(String args[]) { // Initialize String arraylist ArrayList strAL = new ArrayList(); // Add elements inside array list strAL.add("One"); strAL.add("Two"); strAL.add("Three"); strAL.add("Four"); strAL.add("Five"); strAL.add("Six"); System.out.println("Values inside array list: "+ strAL); } } Output: Values inside array list: [One, Two, Three, Four, Five, Six] References...

Read More