EDIT: This turned out to be an odd problem that I have no idea what is going on. How can this HTML
<div class="col-lg-6">
Find:
<textarea id="replace" rows="5" cols="1">to replace</textarea>
</div>
Make this code fail?
<script type="text/javascript">
function go(transform_function) {
alert('go');
transform_function('test');
}
function replace(output) {
alert('rep');
}
</script>
Replace
Fiddles of the oddness