I am calling an ajax function that generates a button:
$html = $this->renderPartial( '/cart/_cartItem', array( 'data' => $data, ) , true );
The problem is, if I print out $html, I see the button, but the associated javascript to make the button work properly, is not there. Is there a way to force render to include the necessary javascript that would make this button work 100%?