Replaces the widget with the widget(s) generated by evaluating the specified JavaScript code snippet.
the old widget to be replaced
the JavaScript code snippet to generate new widget(s).
Replaces the widget with the widget(s) generated by evaluating the specified JavaScript code snippet.