Archive for the ‘Tutorials’ Category

[Solved]: jQuery scrollTop not working in Chrome & Safari

Sunday, February 19th, 2012

The vertical scroll position is the same as the number of pixels that are hidden from view above the scrollable area. If the scroll bar is at the very top or if the element is not scrollable, this number will be 0. If you're using jQuery's scrobuying viagra ukllTop (usually ...

Jquery: How to Check If a Checkbox is Checked

Thursday, October 27th, 2011

If you want to validate if a checkbox is checked using jquery (javascript framework), here is the code snippet for the purpose. We'll use :checked selector for the purpose.

WordPress: Automatically Expire Posts After Specific Date/Time

Thursday, October 20th, 2011

Some time you may not want to keep a post published on your wordpress blog e.g. announcing some promotion, events etc. Instead of permanently deleting that post you may hide/expire that from your articles. For the purpose you can replace the existing posts looping code with the following in your ...

PHP Function To Remove HTML Tags From String

Monday, October 17th, 2011

You may need to remove (strip) HTML from your data to get plain text, For the purpose PHP has a built-in function strip_tags(), Basic syntax is as below

How to Sort Arrays by Values & Keys in PHP

Monday, August 22nd, 2011

If you want to sort arrays in PHP in ascending / descending order by array values, you may use the following code snippets. First lets create an array; $array = array("Red", "Green", "Blue", "Yellow", "White", "Black"); Now lets use PHP's built-in function sort() that will sort the array by values in ascending order.