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
- Time Delay a URL Redirect for Specific Page
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Display WordPress search results based on the selected Sub-Category
- Ignoring links from the_excerpt
- html form: redirect page after form completes submit function and posts data
- Putting custom html/js page into Elementor as it’s own block
- Add Paypal button redirect to a specific page after completing
- Form will not popup, when clicking on the link to the form
- Line break before headings () appears from nowhere
- WordPress User Meta value variable into Google Gauge Chart
- HTML Form Question
- Hide Tab Titles from Tabs Block
- Is it possible to add wordpress blog to my existing html site?
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Search bar for wp menu
- Adding HTML Code to Replace Text in PHP
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- Executing php on button press
- Add other class content with reference class value
- Web cover page open when button clicked
- internal anchor links no longer working after upgrade
- Div not working in WordPress post
- creates an unnecessary space in content?
- How to run Javascript popup modal in a loop?
- How do I change the text content of a div for a comment validation error message?
- Why is WordPress swapping double quotes (“) to curly quotes (“) and how do I stop it from happening?
- Display GIF as Facebook link thumbnail
- Overriding inline !important CSS with Javscript code snippet with media query
- WordPress is replacing code with when I add to posts