Using jquery to apply and remove different styles. The first link removes any existing styles and wrap
Question:
Using jquery to apply and remove different styles. The first link removes any existing styles and wrap the content in an unordered list. The third link removes any applied styles and returns to the default state.The second link should remove any existing styles and wrap the content in an ordered list.
The second link is not working, and I can't figure out why as the syntax works for the first one. Any suggestions? All of code included below. Change Text Formatting part 2
$(document).ready(function() { //format to unordered list $("#bullets").click(function(event) { event.preventDefault(); if(this.id == "bullets") { $("#list").unwrap(); $("span").unwrap(); } $("#list").wrap("
My favorite book series is the "Harry Potter" series by J.K. Rowling. There are a total of seven books in the main series, with a handful of short stories and extras published.
Here are the titles of the seven books: