very often I need to run some javascript on HTML contents returned from an ajax call. Just dumping it in a div doesn't seem to work. Whats the best way to do it? LIke lets say I return teh following HTML code:
<div><input type="text" id="someID" /></div>
<script language="javascript">
$('#someID').somefunction();
</script>
success:segment