how to create an input type = 'button' in jade?

2

I have this code but when I click it does not redirect. What I can do?

input.waves-effect.waves-light.btn-large.red.accent-3(type='button', onclick=location="'../formulario.html'", value="Registrarse")
    
asked by Alexis Rodriguez Jimenez 16.11.2016 в 13:36
source

2 answers

2

The error is where you put the quotes here:

onclick=location="'../formulario.html'"

Try doing it like this:

onclick="location='../formulario.html'"

The complete code would be:

input.waves-effect.waves-light.btn-large.red.accent-3(type='button', onclick="location='../formulario.html'", value="Registrarse")
    
answered by 16.11.2016 / 14:27
source
0

should not be like this:

  

onclick = location = '.. / form.html'

tal vez la falla es en el arbol , prueba con un solo ".", asi: './formulario.html' 

or try

  

onclick="location = '.. / form.html'"

    
answered by 16.11.2016 в 14:43