¿Por qué mi botón onclick no hace nada? [ingrese la descripción de la imagen aquí][1]
doctype html html head block content script. function changeToTextBox(){ alert("Testing"); } title User welcome #{name} body button(onclick="changeToTextBox()") Edit form(name="searchFrm", method="post") input(type='text', name='email') input(type='submit', name='search')Arregle su sangría.
doctype html html head block content script. function changeToTextBox(){ alert("Testing"); } title User body p welcome #{name} button(onclick="changeToTextBox()") Edit form(name="searchFrm", method="post") input(type='text', name='email') input(type='submit', name='search')Y use un compilador como https://pughtml.com/ para ver la salida HTML para que pueda ver mejor qué está mal.