jQuery get parameter of url after #hash tags

May 21, 2014

For url that is also document’s location, use below code to find if #hash tag exist To get the url parameters, simply use code like

jquery change css background image

May 20, 2014

There is two ways of achieve the css set background image using jquery. First: Second: The first method can set multiple css at one time. While the second method only one css per time.

phpMyadmin can’t set default value to Null

May 20, 2014

Newer version of phpmyadmin, some user might experience to get error when trying to set a field to NULL. To make this work, make sure that the option Null for the column be checked. Scroll to the right to find Null column.

PHP cURL POST follow location

May 20, 2014

Using cURL to get the last URL address of POSTED is simply add this line to the cURL request: To know the last url from post request, after curl_exec, add this line: Full sxample:

PHP check remote image valid using curl without download content

May 20, 2014

Using curl, without download content, remote image valid can be known. Example: Output: false

PHP initialize objects like arrays

May 20, 2014

In PHP, you can initialize arrays with values quickly using the following notation: To initialize objects, use STDClass To quickly initialize objects like arrays, we can do:

jQuery javascript make an input readonly

May 9, 2014

To make an input readonly, simply use .prop To enable the input

javascript, jQuery convert PHP string to number

May 9, 2014

Working with PHP data inside javascript. Echo or passing a php number in javascript may turn it to be string instead of integer. example:

jQuery UI Tooltip

May 9, 2014

Tooltip is veryuseful for forms,It is used to show some additional information about input fields. HTML Codes

jQuery checked a radio button

May 7, 2014

To check radio button, you may use .attr To remove radio button checked, view this post