Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to make selected menu using Angular JS

Hello Reader's if you want to show user the menu which he selects then you can use the code below. This code is written in Angular JS <div id="main" ng-app> <!-- The navigation menu will get the value of the "active" vari...

How to show max words left to insert into text area

Hello Reader's if you are making the html5 validation to set the max words inside the html form, Then by using Angular JS NG-Model you can easily make it. Lets's see how to do it as in the example below:- <!DOCTYPE html> <html> ...

How to hide/show the html using Angular JS

Hello Reader's if you want your webpage to show or hide the html form with just a single click then choosing Angular will be the best way. Lets see how to get it working in the example as below:- <!DOCTYPE html> <html> <scrip...

How to print dates monthly between two given dates

Hello Reader's if you want to make ajax html form that takes two dates from user and print then daily or yearly or monthly then you can my code as below:- Lets say the html form, the code will go like this. <div class="form-group clearf...

jQuery clone() Method

The clone() method is used to make clone of the elements that are matching to the selected elements and select the clones. It basically makes copies of the selected DOM element to some other place in the DOM. Syntax: selector.clone() ...

Accordion Menu using jQuery

Accordion Menu are like the dropdown menu with some effects of animation. It has some top menu and dropdown list inside that menu and some other top menu and another dropdown list inside this menu. When we click on the first top menu the dropd...

Javascript:Prompt Dialog Box

Prompt dialog Box is used to have an input from the users or to get confirmation on any input. This dialog box is displayed using a method called prompt() which takes two parameters:- (i) A label which you want to display in the text box. ...

Javascript:Confirmation Dialog Box

Confirmation dialog Box is used to get confirmation on any input. It is mostly used to take user's opinion on any option. It displays a dialog box with two buttons: Cancel and OK. If the user clicks on the Cancel button, then confirm() returns...

How to create an alert dialog box in javascript

An alert is a type of dialog box supported in javascript and is mostly used to give a warning message to the users. For example: If one input field requires to enter some text but the user does not provide any input, then as a part of v...

How show image on click event using Javascript

Hello Reader's If you want to show image on a click event. Then using javascript you can use this in real time. Let's see the example below:- <button onclick="add_google_logo();">Add Google Logo</button> Now the JS will go li...

How to highlight a div using Javascript

Hello Reader's! If you want to make a html page that based on user activity, As user clicks on div then JS will make that div highlight. Let's say our div is - <div tabindex="0">Hello World</div> Here div with tabindex of...

How to make alert message on select the radio button using Javscript

Hello Reader's! If you want to make an alert message for everytime user select the button then you can use the following JS as below:- Lets say our HTML is like this:- <input class="gender" type="radio" name="sex" value="male">Male &...

How to make time slice using Javascript

Hello Reader's If you are genrating the time in Unix time stamp and want to show it like 5 min ago or 3 hours ago then you can use the code below:- Here we are using NOW of the unix timestamp function timeSince(ts){ now = new Date(); ...

Refresh the parent window and close the child window on clicking the button in child window

How to refresh the parent window and close the child window on clicking the button in child window using JavaScript If you want to close your child window and refresh its parent window on click of a button, we can do that with the help of foll...

How to change HTML tags using Javascript

Hi If you want to change the tags of HTML with another tags then you can perform this action using JS in realitme. Let's consider and example to change the <h2> tag with <i> using JS. <h2 class="xyzxterms" style="cursor: defaul...

Reset or Retrieve value of all hidden type input box of FORM or DIV using jquery

Reset or Retrieve value of all hidden type input box of FORM or DIV using jQuery .each() method. You can use below code for this <!DOCTYPE html> <html> <head> <title>Reset or Retrieve value of all hidden ...

How to use custom filters in our code in AngularJS

Filter is one of the important part in angularJS. There are many default filters like: 1. uppercase 2. lowercase 3. orderby etc. We can use these filter simply by adding a pipe character (|) in the expression. Now we will discuss a custom ...

How to Change HTML Content in JavaScript

With the help of this javascript function we can change the html content of an element., when we will click on button it will manipulate the DOM (change HTML contents). <p class="demo">Hello everyone </p> <button type="b...

Trigger function in JQuery

Trigger function has an interesting concept as it is used to execute all handlers and behaviors attached to the matched elements for the given event type. For example, If I want to have a click event on a button without clicking, we can use this...

How to validate dynamically genetrated form using javascript

If you want to validate the dynamically generated form using javascript: You can use this code : HTML : <div id="example"> <form id="newForm"> <input type="text" name="email" id="email" value="mail" /&g...

How to use Filter in Angular JS

A filter is used to format the value of some expression when it is displayed to the user. It can be think as selecting the elements from an array in a particular format and returns a new array. It can be used by the following ways: In HTML ...

Difference between attr() and prop() in JQuery

Many of us uses JQuery.attr() and JQuery.prop() and get the same result, as there is a small difference between the two. Lets discuss it one by one. JQuery.attr() : It generates the value of an attribute for the first element in the set of m...

How to Add/Remove multiple classes in Jquery

If you want to remove mutiple classes on click of a button: HTML: <div class="container"> <span class="class1 class2 class3"></span> <button id="clear" type="button"></button> </div> JS: $("#cl...

Example to demonstrate UI-Routing in AngularJS

What is UI-Route? It is a framework which provide routing for AngularJS. It is completely different from ngRoute, in angularjs you can changes your application views based on state of the application and not just the route URL. With this appr...

How to Create and Retrieve Array in Javascript?

If you want to store multiple values in a single variable javaScript arrays are used. There are few ways to store values in array in javascript which are mentioned below. First way: HTML: <div id="fruitList"></div> Javasc...

Things to know in javascript and jQuery

Difference Between this and $(this)? They both refer to same element. This is used traditional sense but we add $ sign in jquery. When we use $(this), it become a jquery object. Comparision between bind(), live() and delegate()? Bind() and liv...

Dynamic horizontal scroller

Hello All, The following code will help you to make dynamic horizontal scroller. This means that on adding content or images the width of the container automatically increases using jquery. If anyone wants to make horizontal scroller which is i...
prev 1 2 next
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: