src/sb/JS.php
public static function setHTML($id, $html)
    {
        $js = '$("'.$id.'").html('.json_encode($html).');';
        return self::execHeader($js);
    }
public static function setHTML($id, $html)
    {
        $js = '$("'.$id.'").html('.json_encode($html).');';
        return self::execHeader($js);
    }
public static function setHTML ( $ id , $ html ) { $ js = '$("' . $ id . '").html(' . json_encode ( $ html ) . ');' ; return self :: execHeader ( $ js ) ; }
Uses jsexec_header to set the innerHTML of an element by id
@param integer $id the HTML element id
@param string $html The innerHTML to set
@return string
Uses jsexec_header to set the innerHTML of an element by id