This question already has an answer here:
I'm trying to change inner HTML in loaded div by this function:
$("#container").load("site.php");
In site.php
I have <div class="users_count">
and I would like to put some text inside it. I'm trying to use $(".users_count").html("TEST")
but it can't be done since jQuery do not see .users_count
class.
I've heared about jQuery on()
and live()
but it requires some event like click, keyup etc...
I need to put some text in this div without any event - just do it in my function without user action.