Alexander Miss
  • Home
Subscribe
Tagged

jquery

A collection of 1 post

javascript

Javascript - Primeros pasos

Hola Nuevas Criaturas, Les presento cómo hacer clickeable un botón desde Javascript sin jQuery. var btn = document.getElementById('btn'); btn.addEventListener('click', function(){ alert('listo!'); }); Ahora veamos la misma acción pero con jQuery. var btn = $('#btn'); btn.click(function(){ alert('listo!'); }); ¿Fácil, no? Ésto es porque estamos

  • Alexander Miss
Alexander Miss Nov 11, 2014 • 1 min read
Alexander Miss © 2022
Powered by Ghost