Archive for the javascript Category
Change a CSS class dynamically using Javascript
Hi everyone, Yet another tutorial of javascript explaining very basic functionlity of it. But this can be extended further to fo the javascript magic :) Well in this you will learn how to change the class of any element dynamically on an event. I am using the onclick event which is fired when
Read Full PostAdding a class to an element using javascript
There are times when you need to add/change a class for a particular element. This can be very easily achieve using the className method. Please refer to the following snippet of code to understand how it works. Explanation is given after the code. function addClass(obj) { obj.classNa
Read Full PostWhat’s difference between display: none and visibility: hidden?
just when you tread into the world of dhtml or javascript, you can require the display property of CSS more than expected. So it becomes necessary to clearly understand some of the facts behind this powerful language. Here is the difference between the visibility and display property of an element.
Read Full Post