I was experimenting with some internals of JQuery while writing some simple one or two liner scripts to see how JQuery works. Like any programming language, we all start with a Hello world. So here is my Hello World example using JQuery.
<body>
<form id="form1" runat="server">
<div id="content">
<script type="text/javascript">
$(function() {
var v = $("<p>Hello World</p>");
v.insertAfter("#content");
});
</script>
</div>
</form>
</body>
This simple piece of code is inserting a new paragraph HTML element dynamically into document. Translation of the script block is as below:
Simple, isn't it. I will write how this simple piece of code works internally in next post.
How to add Meta tags to page dynamically
Use OpenDNS to set up safe internet access at home
How to measure Web Page performance with CPU throttling
Why I am not upgrading to iPhone 12 for now
Passing Exam AZ-204: Developing Solutions for Microsoft Azure
Alert and Confirm pop up using BootBox in AngularJS
AngularJS Grouped Bar Chart and Line Chart using D3
How to lock and unlock account in Asp.Net Identity provider
2021 © Byteblocks, ALL Rights Reserved. Privacy Policy | Terms of Use