HOT CSS
Free Beautiful Css templates, Web designer tricks from expert
Pages
(Move to ...)
Home
Tutorial
Css
jQuery
SEO
Opencart Expert
Woocommerce Expert
Wordpress Expert
Joomla Expert
▼
Friday, March 7, 2014
Tutorial Check if Element is inside Another Specific Element
›
Replace the first selector with the child you are testing and the second selector with the parent you are testing for. if ( $(".child-...
Tutorial Check if Element Exists
›
if ($('#myElement').length > 0) { // it exists } Or to make it a fancy function with a callback: // Tiny jQuery Plugin ...
Tutorial Check if Checkbox is Checked
›
Say that 10 times fast =). Find out if a single checkbox is checked or not, returns true or false: $('#checkBox').attr('checke...
Tutorial Check for Empty Elements
›
Do something for each empty element found: $('*').each(function() { if ($(this).text() == "") { ...
Tutorial Change WMode with jQuery
›
If you don't set the wmode on a flash embed it will float over the top of an overlay which can be a pretty big deal. This is ideal in en...
Tutorial Calculate Distance Between Mouse and Element
›
(function() { var mX, mY, distance, $distance = $('#distance span'), $element = $('#element');...
Tutorial Browser Detection + Apply Classes to HTML Element
›
// jQBrowser v0.2: http://davecardwell.co.uk/javascript/jquery/plugins/jquery-browserdetect/ eval(function(p,a,c,k,e,d){e=function(c){retur...
‹
›
Home
View web version