I am using PHP to send a json string to jQuery ajax. I am simply using $("#id").html(data.result) to display the html from the fetched page. Now on the fetched page I am looping through MySQL results. I need to run a piece of javascript on each result so I can start a countdown timer for each result.
My problem is that the calling page simply displays the actual javascript script as a string.
$row_array['result'] .= '<script>trigger script</script>'
Any suggestions?
Thanks