If you’re talking about a CListView where pages are updated using Ajax, then of course there will be a problem, since the tags that you initially assign the javascript to will be replaced on Ajax updates.
Either use jQuery live or delegate to assign the events, or look into the afterAjaxUpdate configuration parameter of CListView in order to repeat your javascript assigning whenever there is an Ajax update.