jQuery hide/show div using variables
- by user295927
I am a nOOb to jQuery.
I want to use variables in jQuery to hide/show divs.
what I have so far is:
$(document).ready(function(){
$('#listMenu a').click(function () {
var getPage = $(this).attr("id");
var getName = $(this).attr("name");
//console.log(getPage);
//console.log(getName);
…