Quickly Create a Shiny Button using CSS3 | Code Snippet #21

9 Feb , 2014     Code Snippets 

CSS3 Shiny Button

Code Snippet #21:  The code today shows how to quickly create a shiny button using CSS3. Get a glossy CSS3 button with the help of :after and :before attributes.  CSS3 transitions and animations are helpful in achieving amazing animations without having to take the help of jQuery now. These CSS3 transitions can be modified and […]

Check If One String Contains Another Substring in JavaScript | Code Snippet #20

3 Feb , 2014     Code Snippets 

Code Snippet #20:  The code snippet teaches us to compare and check if one string contains another substring in JavaScript. Basically we are going to perform a string comparison using JavaScript. Today, we are going to see how two string can be compared with the help of JavaScript using indexOf() method. indexOf() method returns the position of […]

How to get the Selected Text Using jQuery? | Code Snippet #19

30 Jan , 2014     Code Snippets 

Get Selected Text Using jQuery

Code Snippet #19: jQuery code to get the selected text using jQuery. Using mouseup() and mousedown() APIs to fetch the selected text and display them on the page. Today, we are going to learn how to fetch the selected text using jQuery APIs. We will try to display the selected text in a div area […]

How to Dynamically Generate Divs Using jQuery? | Code Snippet #18

28 Jan , 2014     Code Snippets 

Code Snippet #18: jQuery code to dynamically create divs using jQuery. Today’s code snippet teaches us how to create divs dynamically using jQuery with the help of for loop. Creating contents dynamically is an interesting thing on the web and on your website. People love looking at dynamically created contents. Previously, we had seen how […]

Create Dynamic Checkbox Using Drop Down Selection With jQuery | Code Snippet #17

24 Jan , 2014     Code Snippets 

Code Snippet #16: The code we discovered today is used to create dynamic checkbox using jQuery with the help of drop down selection. Dynamically generating checkbox based on a drop down selection. In our previous code snippet, we saw how to change drop downs based on another drop down selection. Today, we are going to […]

Change Drop Down Menu Based on Another Drop Down Selection Using jQuery | Code Snippet #16

23 Jan , 2014     Code Snippets 

Code Snippet #16: The code we discovered today can change drop down menu based on another drop down selection with the help of jQuery. Changing the value of drop downs using jQuery. Drop downs are an integral part of forms. Drop downs are helpful and necessary to handle large list of data. Creating dynamic drop […]

Change Background Color of Div With jQuery toggleClass | Code Snippet #15

20 Jan , 2014     Code Snippets 

Code Snippet #15: jQuery code snippet to change background color of div with jQuery toggleclass function. A simple code to toggle background color with the help of jQuery. jQuery is a powerful framework to create anything and do anything. Today, we thought of sharing the code to change the background of a div element using […]

Simple jQuery Message Ticker | Code Snippet #13

10 Jul , 2013     Code Snippets 

Code Snippet #13: The code snippet creates a simple message ticker using jQuery. A simple and sliding jQuery message ticker for your website. Message tickers are a very common element for a website and for web designer to show case their upcoming updates, upcoming news, upcoming events and the like. Message tickers can be used […]

How to Create Tooltip Using Twitter Bootstrap | Code Snippet #12

6 Jun , 2013     Code Snippets 

Code Snippet #12: The code snippet creates tooltip using the Twitter Bootstrap plugin. In our previous post, we saw some awesome jQuery plugins to create tooltip. But, we never touched upon the Twitter bootstrap plugin, which can be used to create Twitter style tooltips using small lines of codes. We need to just add the […]