Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
jQuery

First jQuery Program

Write a minimal page that selects an element and changes its text on ready.

First jQuery Program — a practical guide to first jQuery program with clear examples you can reuse in real projects.

jQuery Tutorial Series (8/101). Prefer one article? Read the complete jQuery tutorial.

Short description

Confirm the console has no $ is not defined errors.

Steps

  1. Include jQuery.
  2. Wait for ready.
  3. Select and update an element.

Hello jQuery

<p id="msg">Hello</p>
<script src="jquery.min.js"></script>
<script>
$(function () {
  $('#msg').text('Hello jQuery');
});
</script>

Leave a reply

Your email address will not be published. Required fields are marked *