<< Back to article

jQuery with ASP.NET examples : Hello World Sample

There is one div tag with id="divSample". When page loads function helloWorld is executed, with code like this:

<script type="text/javascript">
function helloWorld()
{
    $("#divSample").append("Hello World!!");
}
</script>

When page is loaded, divSample gets "Hello World" message, like bellow:


<< Back to article