The actual problem is with your
showList function.
There is an extra ')'
after ‘visible’.
Remove that and it will work fine.
function showList() { if (document.getElementById("favSports").style.visibility == "hidden") { // document.getElementById("favSports").style.visibility = "visible"); // your code document.getElementById("favSports").style.visibility = "visible"; // corrected code } }
Related Posts:
- How to submit a form with JavaScript by clicking a link?
- Edit webpage with javascript trick – how to “unedit”?
- Automatically pausing html5 video as the ‘next’ button is pressed (javascript/ jquery)
- Is it possible to write data to file using only JavaScript?
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- Is it possible to write data to file using only JavaScript?
- How to make JavaScript execute after page load?
- Set cookie and get cookie with JavaScript
- Which is better: or
- Onclick javascript to make browser go back to previous page?
- How to make JavaScript execute after page load?
- Why is my Javascript not working?
- Angular: mat-form-field must contain a MatFormFieldControl
- How can I get the values of data attributes in JavaScript code?
- Javascript: getElementById vs getElementsById (both works on different pages)
- mailto using javascript
- mailto using javascript
- Mailto using Javascript?
- How to change css property using javascript
- javascript close current window
- Multiple radio button groups in one form
- I am trying to make a simple toggle button in javascript
- How to call a JavaScript function within an HTML body
- How to save user input into a variable in HTML and JavaScript
- Hiding a button in Javascript
- Show/hide ‘div’ using JavaScript
- How to make JavaScript execute after page load?
- Get HTML code using JavaScript with a URL
- Calculate percentage Javascript
- How to display image with JavaScript?
- Resize image with javascript canvas (smoothly)
- Get checkbox value in jQuery
- JavaScript function onhover in
- How to read if a checkbox is checked in PHP?
- Check if an element contains a class in JavaScript?
- Hide element by class in pure Javascript
- How to play a mp3 using Javascript? [duplicate]
- mailto using javascript
- How to call a REST web service API from JavaScript?
- Check a radio button with javascript
- Multiple Forms or Multiple Submits in a Page?
- AppendChild() is not a function javascript
- How can I change an element’s class with JavaScript?
- “AutoComplete=Off” not working on Google Chrome Browser
- How to create a HTML Cancel button that redirects to a URL
- How to get rid of blue outer border when clicking on a form input field?
- What does ngf-select do and why is it needed for form validation?
- JavaScript: Get image dimensions
- Square brackets in CSS
- Input Type URL – Says “Please enter a URL” if HTTP is not included
- Why write script type=”text/javascript” when the mime type is set by the server?
- How to select an input element by value using javascript?
- FormData append not working
- Form inside a table
- JavaScript code to stop form submission
- javascript window.location in new tab
- How to create a hidden in JavaScript?
- How do I programmatically set the value of a select box element using JavaScript?
- Redirecting to a page after submitting form in HTML
- How can I capture the right-click event in JavaScript?
- How do I clear the content of a div using JavaScript?
- Style reply form different than comment form
- How to add a button that enables the user to insert a link in a textarea located in the front-end?
- How to insert HTML/JavaScript form into WordPress page? [closed]
- Submitting form in wordpress plugin
- Programming WordPress to send a custom-built form to specified email address
- Cascading dropdown select search based on Parent Page & Child Page
- Can’t Listen to KeyDown in TInyMCE Iframe (jQuery) and Pass it to Parent HTML FORM
- How can I add a custom caclulation form in post?
- Can’t find function which is called in a wordpress theme
- Sending GravityForms to custom HTML
- How to create an HTML button that acts like a link
- Cannot set property InnerHTML of null [duplicate]
- Is there an upside down caret character?
- Disable Scrolling on Body
- Darken CSS background image?
- document.getElementById().value doesn’t set the value
- How to run a function when the page is loaded?
- Clearing my form inputs after submission
- text-align justify not working
- how to write javascript code inside php
- html : iframe not showing content in html
- POST an array from an HTML form without javascript
- How can I publish Word files to a WordPress blog without losing the footnotes?
- Javascript code inside “” in core WordPress files .php
- How can I set different html lang attribute for different countries?
- How to integrate my HTML and javascript into my child theme
- parts of url disappear when using # inside href=”” [closed]
- Can’t save any WordPress post with the html tag in it
- Noscript not working as it should in wordpress site
- Run JavaScript validation script on form submit in plugin
- remove string: ‘custom content…’ from every page
- Whitespace Before Doctype
- HTML Form Submit to table in same page
- How to add post meta in while loop?
- how to let users upload their custom cover image
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- Inserting code into a page just shows raw HTML
- dropdown does not work [closed]
- Limit total tags in the_content