I am showing three divs using jquery using this,
$("#ImageButtonDiv").show();
$("#ResultsDiv").show();
$("#PagerDown").show();
Is my following statement valid?
$("#ImageButtonDiv #ResultsDiv #PagerDown").show();
Any suggestion...
I am showing three divs using jquery using this,
$("#ImageButtonDiv").show();
$("#ResultsDiv").show();
$("#PagerDown").show();
Is my following statement valid?
$("#ImageButtonDiv #ResultsDiv #PagerDown").show();
Any suggestion...
No. You do this instead:
$("#ImageButtonDiv, #ResultsDiv, #PagerDown").show();
When using multiple selectors, you much separate each with a comma ,
.
Just because it's possible:
$("#ImageButtonDiv #ResultsDiv #PagerDown".split(' ').join(',')).show();
But, returning to seriousness, sticking to a D.R.Y. I would use a class
for all those elements and just call
$('.my_beautiful_class').show();