To resize a image proportionally with CSS, simply set either width or height to auto. This should also work if the img html tag has width and height attributes set.
To set the HTTP Header for a request using AngularJs you can use the following snippet. Use the headers parameter in the config object you pass to $http. For more…
To define global Variables in AngularJs you can use one of the following ways. WAY1: Using $rootScope (see this JsFiddle) HTML: Javascript: WAY2: Using a Service (see this JsFiddle) HTML:…
To remove an element using javascript, you can use one of the following snippets. Sample Javascript Sample Javascript removeChild() is the only method supported by the DOM to remove a…
To Remove the Border of an IFrame you can use the snippet below. Please note the capital B of frameBorder. Sample HTML if you are using HTML5 you should use…
How to delete all unapproved comments in WordPress
To delete all unapproved comments in WordPress you can use the following snippet. Sample mySQL
How to identify unused tags in WordPress
To identify unused tags in WordPress you can use the following snippet.
How to resize a image proportionally with CSS
To resize a image proportionally with CSS, simply set either width or height to auto. This should also work if the img html tag has width and height attributes set.
How to get or set the value of a textbox using jQuery
To get or set the value of a textbox using jQuery you can use the following snippet. Sample jQuery
How to set the HTTP Header for a request using AngularJs
To set the HTTP Header for a request using AngularJs you can use the following snippet. Use the headers parameter in the config object you pass to $http. For more…
How to define global Variables in AngularJs
To define global Variables in AngularJs you can use one of the following ways. WAY1: Using $rootScope (see this JsFiddle) HTML: Javascript: WAY2: Using a Service (see this JsFiddle) HTML:…
How to remove an element using Javascript
To remove an element using javascript, you can use one of the following snippets. Sample Javascript Sample Javascript removeChild() is the only method supported by the DOM to remove a…
How to remove the border of an IFrame
To Remove the Border of an IFrame you can use the snippet below. Please note the capital B of frameBorder. Sample HTML if you are using HTML5 you should use…
How to switch a div background image in jQuery
To switch a div background image in jQuery you can use the following snippet. Sample jQuery
How to replace the inner HTML of a div using jQuery
To replace the inner HTML of a div using jQuery you can use the following snippet.