Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Falta enlazar con una funcion de JS #1

Closed
alejovillores opened this issue Jul 9, 2022 · 0 comments
Closed

Falta enlazar con una funcion de JS #1

alejovillores opened this issue Jul 9, 2022 · 0 comments

Comments

@alejovillores
Copy link

<input type="submit" name="enviar" value="Enviar" class="btn-enviar">

Aca lo que tenes que hacer es que al apretar el boton se ejecute la funcion del js
algo que podes hacer para que sea mas rapido y mejor es usar en vez de una etiqueta <a> es usar una <button> y si estas usando Vue deberias tener algo como:
<button @click="guardar()"> Guardar </button>.

En Vue lo agarras desde el metodo

methods : {
    guardar() {
        code ... 
     },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant