0

JQuery UI Date Range Selection with one input field

Add following code in your html section. [code language=”html”] <input id="date" /> [/code] add following jquery code in your file [code language=”js”] $("#date").datepicker({     numberOfMonths: 2,     onSelect: function( selectedDate ) {         if(!$(this).data().datepicker.first){             $(this).data().datepicker.inline = true             $(this).data().datepicker.first… Continue Reading

0

Show More – Show Less using switchClass

Demo http://jsfiddle.net/m/jpc/ Live Codehttp://jsfiddle.net/sandypal/225c6hry/1/ [code language=”html”] <div class="text-container"> <h1>Lorem ipsum dolor</h1> <div class="text-content short-text"> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero… Continue Reading

0

JQuery Validation for Array of Input Elements

Sometimes we need to validate an array of input elements: For example – [code language=”html”] <form name="signupForm" class="cmxform" id="signupForm" method="get" action=""> <select name="category[]" id="cat_1"> <option value="">Select One</option> <option value="1">aa</option> <option value="2">bb</option> <option value="3">cc</option> <option value="4">dd</option> </select> <select name="category[]" id="cat_2"> <option… Continue Reading

0

Make iframe automatically adjust height according to the contents without using scrollbar?

jquery code [code language=”jquery”] <script language="javascript" type="text/javascript"> function resizeIframe(obj) { obj.style.height = obj.contentWindow.document.body.scrollHeight + ‘px’; } </script> [/code]