Browse »
Home » Archives for March 2016
jquery click doesnt work on ajax generated content
<html>
<head>
<title>snd<title>
</head>
<body>
<div>
<button class="my-click" >Click Me</button>
</div>
<script type="text/javascript">
//if use class name on click using .(dot) to refer the class
//if use id name on click using # to refer the id
$(document).on('click','.my-click',function(){
alert('hai');
});
</script>
</body>
</html>
HTML Basic Examples
- All HTML documents must start with a type declaration: <!DOCTYPE html>.
- The HTML document itself begins with <html> and ends with </html>.
- The visible part of the HTML document is between <body> and </body>.
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Headings
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Paragraphs
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Links
<a href="http://www.w3schools.com">This is a link</a>
Images
<img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
HTML elements are written with a start tag, with an end tag, with the content in between:
Elements
<tagname>content</tagname>
The HTML element is everything from the start tag to the end tag:
<p>My first HTML paragraph.</p>