I have a string variable called [Content] and I want to assign it a button tag that calls a javascript. I'm trying like this:
Conteudo = "<input id='btnOculta_" + lin + "' type='button' value='novo' class='btn btn-default' onclick='Ocultar(this, 'OcultaNovoMedicamento_1')' style='float:left' />"
But on the onclick = 'Hide (this,' occultNewMedication_1 ')' snippet it is the second 'as a closure of the first and not as a second opening. And it returns me a wrong code.
Expected:
<input id="btnOculta_1" type="button" value="novo" class="btn btn-default" onclick="Ocultar(this, 'OcultaNovoMedicamento_1')" style="float:left" />
Got (Wrong):
<input class="btn btn-default" id="btnOculta_1" style="float:left" onclick="Ocultar(this, " type="button" value="novo" ocultanovomedicamento_1')'="">
How do I solve this cucumber?