This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>jQuery Exists Function</title> | |
</head> | |
<body> | |
<div id="elem"></div> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<meta charset=utf-8 /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="We can now write some jQuery to demonstrate what the second argument does:" /> | |
<meta charset=utf-8 /> | |
<title>jQuery Function Second Argument</title> | |
</head> | |
<body> | |
<ul id="firstList"> | |
<li>one</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>External Links with an icon</title> | |
</head> | |
<body> | |
<ul id="links"> | |
<li> | |
<a href="007.html">The previous tip</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Mastering the jQuery End Method</title> | |
</head> | |
<body> | |
<ul id="meals"> | |
<li> | |
<ul class="breakfast"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//no-iframe.js | |
if(window != window.top){ | |
window.top.location = window.location; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--editable-inline-stylesheet.html --> | |
<style type="text/css" id="regular-style-block"> | |
html{ | |
background-color:#222229; | |
position:relative; | |
} | |
body{ | |
font:14px/1.3 'Segoe UI', Arial, sans-serif; | |
color:#e4e4e9; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('p.descr').attr('unselectable','on') | |
.css('user-select','none') | |
.on('select-start', false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- jquery-cdn-js.html--> | |
<!-- Case 1 - requesting jQuery from the official CDN --> | |
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> | |
<!-- Case 2 - requesting jQuery from Googles CDN (notice the protocol) --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<!-- Case 3 - requesting the latest minor 1.10.x version (only cached for an hour) --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10/jquery.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>UseElement Grouping to Keep DOM Touches at a Minimum</title> | |
</head> | |
<body> | |
<div id="elem"></div> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |