Using jQuery, how do I change the color of all paragraph tags on the page to green when a button is clicked? I've started with this:
$(document).ready(function() {
button.click(function() {
WHAT GOES HERE?
});
});
Using jQuery, how do I change the color of all paragraph tags on the page to green when a button is clicked? I've started with this:
$(document).ready(function() {
button.click(function() {
WHAT GOES HERE?
});
});
Something like this
$(document).ready(function() {
$('button').on('click', function() {
$('p').css('color', 'green');
});
});
You should start by reading the manual -> https://learn.jquery.com/