Newbie alert…
I’m trying to make an educational that uses different audio players (with different ids) depending on the browser. In some cases, the div ids will be #f-FIVE, for example, or, in other cases just #FIVE. This is not something I have a lot of control over due to the audio players.
Using jQuery, I want to use the div ids to test for which audio player is being used.
In this fiddle http://jsfiddle.net/eft84/15/, I am trying (unsuccessfully) to fade out an element using an if then structure if #f-FIVE exists. Would you be kind enough to help me spot my errors.
Here you go: http://jsfiddle.net/Paulpro/SySRb/
Will be 1 or more if there is a match (Should be exactly one since it’s an id selector). If there is no match it will be 0 and evaluate to false.