Preview an image before uploding using javascript

While creating html forms, most of us include an input field for uploading files. If the type of file to be uploaded is image, it would be great to allow the site user to preview the image before actual upload. This can be achieved by using javascript’s File reader.   Html markup And the corresponding […]

Dynamically make DOM element height equal

Most of the time we encounter a situation where our layout is disturbed due to uneven heights of the divs, spans or other elements having varying amount of content. This causes them to have variable height which in turn results in broken layout. A quick and simple fix for such problem can be adjusting the […]

1 2