This is my HTML:
<div class="dropdown-text" id="dropdownopen" onclick="dropdownopen(0)">
<div class="inside">+ Show Content</div>
</div>
<div class="dropdown" id="dropdownnum(0)">
<div class="inner">INSERT DROPDOWN CONTENT IN HERE</div>
</div>
And here is my JS (Jquery):
function dropdownopen(param) {
$('#dropdownnum('+param+')').fadeOut(300);
}
The #dropdownnum(0) div is display:none; by default, so this should work, but I get the error:
Uncaught Error: Syntax error, unrecognized expression: #dropdownnum(0).