Posts

Fetching data from external JSON file on after the another using Jquery with dynamic backgorund color generator

Fetching data from external JSON file on after the another using Jquery with dynamic background color generator For checking the out of the code :  Output Link Jquery  Explanation $.getJSON( "https://api.myjson.com/bins/14pvyv", function(obj) {       $.each(obj, function(key, value, i) {              $("ul").append("<li><span class='title'>"  +value.empName + "</span> " + "<span>"               +value.designation+ "</span>" + "<span>" + value.joiningdate  +"</span>"  + "                    <span class='age'>"+ value.age + "</span></li>"); }); Once document is loaded on the browser, I invoked "$.getJSON" method. after invoking method, the first parameter are passing is the URL of the json file and then callback function.    T...
Image
Simple Form validation Using Javascript and passing data to select option using Ajax XmlHttpRequert HTML Markup <div class="form-wrapper">   <form id="signupform" name="myForm" action=" " onsubmit="return validateForm()" method="post" class="forms">        <h3 class="form-title">Sign Up</h3>          <div class="signup-form">       <div class="form-group">         <label class="control-label">Name</label>         <input type="text" value="" class="form-control" name="name" onkeypress="error()" />         <span class="bar"></span>         <span id="errormsg" class="error"></span>       </div>       <div class="form-group">         <label class="control-label gender-lbl...