Jump to content

Leaderboard


Popular Content

Showing most liked content on 10/10/2017 in all areas

  1. 1 point
    If $(this).attr('id') returns the correct ID, then this (and the jQuery-wrapped $(this)) refer to the same element. There's no reason to get the ID from the element, then get the element again. You already have it, you're getting the ID from it.
  2. 1 point
    You could also use $(this) to refer to each element, instead of getting the ID of $(this) and then looking up the same element.
  3. 1 point
    You're telling to find an element with the ID "podType". If you want to use the value of the variable, you need to specify that. $('#' + podType)
×