Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save darklilium/c466e3fb8444c0083161 to your computer and use it in GitHub Desktop.
Save darklilium/c466e3fb8444c0083161 to your computer and use it in GitHub Desktop.
[JQuery+CSS]Funciones JQuery para css
Algunas funciones que se utilizan en Jquery para la modificacion, agregación o eliminación de selectores.
//Cambia las propiedades de un selector.
$(".searchNotification").css("visibility","initial");
//Elimina los hijos pertenecientes al padre del selector. (incluídos textos)
$( "#myNotification" ).empty();
//Agrega un selector nuevo al padre.
$("#myNotification").append("<div><strong>NIS: " + this.refs.NIS.value +" presente en falla aislada</strong></div>");
//Cambia la clase de un selector
$("#myNotification").attr("class", "alert alert-info");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment