One line code to make your image map responsive, $('img[usemap]').rwdImageMaps();
Read more
JS added new input does not post 2013-02-18PHP,jQueryPHP
On developing a submition form, we will sometimes need a variable number of input for some options. In the case we usaully use jquery/js to dynamically add input fields to the form. However, today I face on a problem that the jquery added input does not post to the server side. Finally, I find the reason is related to the strcture of the html.
The reason cost the problem is the order of form and table. In the case, I have put the form inside the table which will make the added input not catch by the form, simply change to the following and the problem solve:
Read more
A better way to support placeholder in IE 2013-01-01jQueryjQuery
Using a float span as the placeholder message instead change the value of the input
Read more
HoverIntent - an extends for jQuery hover 2012-08-11jQueryjQuery
jQuery hoverIntent is a plugin used to delay the trigger of mouseover and mouse out of hover function. This helps us to prevent user trigger many times of event when move over a layer.