by topic I have some divs with id = \"loader\".
In my jQuery code I have
$(\"#loader\").hide(),
but it works only with the first
Having more than one element with the same ID is not valid HTML. You can only have one element with the ID (#loader) in the whole page. That's why jQuery is hiding only the first element. Use the class instead of the id:
#loader
$('.loader').hide();