Category: JavaScript/Jquery

Jquery:Add days in date

Jquery:Add days in date

<code> <script><br /> $(“#x_days”).change(function(){<br /> /* DefaultDateFormat defined in config.php */<br /> ;<br /> var mDate =new Date(2013, 10, 16);<br /> var numberOfDaysToAdd=this.value;<br /> var tomorrow = new Date();<br /> var p =new Date(tomorrow.setDate(mDate.getDate()+parseInt(numberOfDaysToAdd)));<br /> var formated_date=p.getDate()+’/’+(p.getMonth()+1)+’/’+p.getFullYear();<br /> alert(formated_date);<br /> });<br /> <script><br /> </code></p> </script></code>

Jquery:Get selected text of dropdown

Jquery:Get selected text of dropdown

Jquery:Check if image exists with given url using jquery

Jquery:Check if image exists with given url using jquery

Colorbox: Automatically set the height and width of an iframe colorbox

Colorbox: Automatically set the height and width of an iframe colorbox

When we are using iframe , then color box unaware about what content come in iframe,its height or its width. So we initially set a relevant height and width set a default width & height when opening colorbox with these options:

Now when iframe loaded then Find height and width of your iframes content …

+ Read More

Jquery 2.0 Drops support for IE 6/7/8

Jquery 2.0 Drops support for IE 6/7/8

Its a good news for every developer,who waste their time for solving IE related issues and unable to convey leads and client that its a problem of IE and Jquery . Now Jquery 2.0 released and the core team drops support for IE 6/7/8. For detail check. http://blog.jquery.com/2012/06/28/jquery-core-version-1-9-and-beyond/

Understand mouse event in jquery

Understand mouse event in jquery

Understand mouse event in jquery ————————————————