• Skip to content
  • Skip to primary sidebar

Developers Tips & Tricks

You are here: Home / Archives for JQUERY

JQUERY

Setting up Working Environment for Backbone.js

17 marzo, 2016 by MPezzolano

Setting up Working Environment for Backbone.js

BackboneJS has a hard dependency on Underscore.js and a soft dependency on Jquery. So, the following components are required to start working with BackboneJS: Backbone.js Underscore.js (>=1.4.3) Jquery (>=1.7.0) So, after having all these prerequisites we will test if it has been set up properly by writing our first BackboneJSDemo.html file such as below: <html> <head> <meta charset=”utf-8″> […]

Filed Under: BackBone JS, HTML5, JQUERY Tagged With: collections, events, javascript, models, routes

JQuery $(this)

30 mayo, 2015 by MPezzolano

Ejemplo en JQuery de objeto this : <!DOCTYPE HTML> <html> <head> <title></title> <script type=”text/javascript” src=”http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.2/jquery.js”></script> <script type=”text/javascript”> $(document).ready(function() { $(“.primero”).on(“click”, function() { alert($(this).text()); }); $(“a”).on(“click”, function(e) { e.preventDefault(); alert($(this).text()); alert($(this).attr(“href”)); }); }); </script> </head> <body> <a href=”http://analista3.info”>Link</a> <div class=”primero”> texto </div> </body> </html>

Filed Under: JQUERY

JQuery Prevent Default

30 mayo, 2015 by MPezzolano

<!DOCTYPE HTML> <html> <head> <title></title> <script type=”text/javascript” src=”http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.2/jquery.js”></script> <script type=”text/javascript”> $(document).ready(function() { $(“a”).on(“click”, function(e) { e.preventDefault(); // e es el evento y preventDefault permite manipularlo // se para el evento se puede cambiar la lógica antes de que el evento se siga ejecutando alert (“Se hizo click en el link”); }); $(“form”).on(“submit”, function(e) { e.preventDefault(); […]

Filed Under: JQUERY

JQuery Selectors id, class, name

30 mayo, 2015 by MPezzolano

Un ejemplo de los tipos de Selectors en JQUERY : <!DOCTYPE HTML> <html> <head> <title></title> <script type=”text/javascript” src=”http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.2/jquery.js”></script> <script type=”text/javascript”> $(document).ready(function() { $(“.contenedor”).on(“click”,function(){ alert (“contenedor con clase”); }); $(“#contenedor”).on(“click”,function(){ alert (“contenedor con id”); }); $(“div[name=contenedor]”).on(“click”,function(){ alert (“contenedor con nombre”); }); }); </script> </head> <body> <div class=”contenedor”>contenedor con clase</div> <div id=”contenedor”>contenedor con id</div> <div name=”contenedor”>contenedor con […]

Filed Under: JQUERY

jQuery Eventos, Controles, Selectores, Objetos

3 marzo, 2015 by MPezzolano

jQuery Eventos, Controles, Selectores, Objetos. Dentro de un modal al menos un checkbox debe estar checkeado : if (jQuery(‘.status-modal .content .status_container’).find(“input:checked”).size() === 0) { app.showAppMessage(“At least one status must be enabled.”, “error”); } .empty .empty remueve todos los nodos hijos encontrados en el dom. $statusContainer = jQuery(“#add-edit-contest .contest-status-container”).empty(); var myCss = $(element).attr(‘css’); myCss = myCss.replace(‘background-color: […]

Filed Under: JQUERY

  • Page 1
  • Page 2
  • Page 3
  • Next Page »

Primary Sidebar

Categorías

  • Angular JS (10)
  • BackBone JS (6)
  • Ember JS (2)
  • Express JS (4)
  • EXTJS (1)
  • General (7)
  • GIT (3)
  • Grunt JS (2)
  • HTML5 (8)
  • JAVA (5)
  • JavaScript (14)
  • JQUERY (15)
  • JSON (1)
  • JSP (1)
  • Knockout JS (2)
  • LARAVEL (13)
  • Linux (2)
  • Mobile Angular UI (1)
  • Modulus.io (1)
  • MongoDB (5)
  • MySQL (3)
  • NodeJS (11)
  • PHP (1)
  • Polymer (3)
  • PostgreSQL (1)
  • Prism.JS (1)
  • PYTHON (10)
  • QOOXDOO (1)
  • React JS (7)
  • Redis (2)
  • Sin categoría (6)
  • SQL (1)
  • TWIG (4)
  • UnderScore (1)
  • Web Services. (2)
  • Wordpress (1)

Cloud Tags

Angular JS BackBone JS Ember JS Express JS EXTJS General GIT Grunt JS HTML5 JAVA JavaScript JQUERY JSON JSP Knockout JS LARAVEL Linux Mobile Angular UI Modulus.io MongoDB MySQL NodeJS PHP Polymer PostgreSQL Prism.JS PYTHON QOOXDOO React JS Redis Sin categoría SQL TWIG UnderScore Web Services. Wordpress

Copyright © 2022 · Genesis Sample Theme on Genesis Framework · WordPress · Log in