Code snippet for search manually using JavaScript.

In web application development we have requirement for implementing of search data from a bulk of data. In this post we are going to see the code snippet for how to implement search functionality by using Java Script..

Download the complete project from here


How to add Number of Days to Date in Javascript.

Java Script Code snippet :-

var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();

if(dd<10) {

if(mm<10) {

todayDate = mm+'/'+dd+'/'+yyyy;
var NewDate=AddDays(todayDate,10); //Calling method

function AddDays(jsDate,iNoOfDays){
var thisUTC = jsDate.getTimezoneOffset();
jsDate.setTime(jsDate.getTime() + iNoOfDays * 86400000);
if (thisUTC != jsDate.getTimezoneOffset()) {
jsDate.setTime(jsDate.getTime() + (jsDate.getTimezoneOffset() - thisUTC) * 60000);

return (jsDate);

Absolute Position & Relative Position in CSS :-

It’s very Important to understand what is absolute position and relative position and how they behave because while you are designing any UI based control at that time you required to put the content as where the user want.

Note:-UI based control means when you are doing Dragging, Dropping and Resizable functionality then it’s very much help full that how you placing the content inside the page.

Continue reading