Profile
Achievement
luhonghai's Recent Snippets
- All /
« Prev 1 Next »
To check if an “enter†key is pressed inside a textbox, just bind the keypress() to the textbox.
0
1243
posted 9 years ago by luhonghai
To detect copy, paste and cut behavior, you just need to bind the corresponding event type.
0
1640
posted 9 years ago by luhonghai
To check if jQuery library is loaded, use the following JavaScript code
0
1121
posted 9 years ago by luhonghai
JQuery is really a powerful and handy JavaScript library. The page or content loading effect is very easy to implement in jQuery. Here’s a example to make your web page content display a fade in page loading effect
0
1033
posted 9 years ago by luhonghai
In JSF 2.0, you can use <h:outputStylesheet> output a css file
0
1003
posted 9 years ago by luhonghai
Removes an item from the page, without affecting page flow or causing scrollbars. Much better than display: none; or even visibility: hidden;
0
999
posted 9 years ago by luhonghai