Skip to content

DataOps Blog

Just another DataOps site

  • Home
  • certification
  • consultant
  • consulting
  • Contact Us!
  • courses
  • Intro to Laravel
  • tools
  • trainer
  • training

jQuery Basic

January 27, 2022
By Subham Kumar Mishra In JavaScript

jQuery Basic

jQuery is a JavaScript library.

The purpose of jQuery is to make it much easier to use JavaScript on the website.

jQuery syntax is tailor made for selecting HTML elements and performing some action on the element

ex-

$(“selector”).action()

. A $ sign to define/access jQuery

. A (selector) to query (or find) HTML page

. A jQuery action() to be perform need an elements

$(this).hide() – hides the current element .

$(“p”).hide()- hides all the <p> elements .

$(“.test”).hide()- hides all elements with class =”test” .

$(“#test”).hide()- hides all elements with id =”test” .

The Document Ready Event

$(document).ready(function)

{

// jQuery methods go here

}

This is to prevent any jQuery code from running before the document is finshied loading is ready.

$(document).ready(function()

{

$(“button”).click(function()

{
$(“p”).hide();

});

});

jquery
Written by:

Subham Kumar Mishra

View All Posts

Recent Posts

  • Kubernetes CKA Training Course & Official Master Certification Program
  • Elastic Training Course & Official Master Certification Program
  • Prometheus Training Course & Official Master Certification Program
  • AppDynamics Training Course & Official Master Certification Program
  • Dynatrace Training Course & Official Master Certification Program
  • Grafana Training Course & Official Master Certification Program
  • Newrelic Training Course & Official Master Certification Program
  • Splunk Training Course & Official Master Certification Program
  • Datadog Training Course & Official Master Certification Program
  • Zabbix Training Course & Official Master Certification Program
  • MLOps Training Course & Official Master Certification Program
  • DataOps Training Course & Official Master Certification Program
  • AiOps Training Course & Official Master Certification Program
  • Gitops Training Course & Official Master Certification Program
  • SRE Training Course & Official Master Certification Program
  • DevSecOps Training Course & Official Master Certification Program
  • DevOps Training Course & Official Master Certification Program
  • Best Blog website for Health and Fitness mymedicplus.com/blog
  • Top 5 Basic Programming Question for interview purpose in JS.
  • JAVA SCRIPT VARIABLE AND DATATYPE.

Archives

Categories

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Free Video Tutorials
  • DevOps School
  • Best DevOps
  • scmGalaxy
  • Artificial Intelligence
  • DataOps
  • AIOps
  • GuruKul Galaxy
  • DevOps Consulting
  • DevOps Freelancers
  • DevOps Trainer
  • Free Ebooks
  • School for Debugger
  • Holiday Landmark
  • Surgery Planet
  • My Hospital Now
  • My Medic Plus
  • ProfessNow
  • Cotocus
  • Stocks Mantra
  • I Reviewed

Proudly powered by WordPress | Theme: BusiCare by SpiceThemes