0 points

Select Element with ID using jQuery


Posted by @mishka #javascript

Step 0: Add ID to an HTML element

<h2 id="lastHeading">Thank you for reading</h2>
content_copyCopy to Clipboard

Step 1: Select with ID tag in script or javascript file

	var blogHeaders = $("#lastHeading");
content_copyCopy to Clipboard

Make sure jQuery has been already added to project.

>> Browse more code snippets