Created
March 17, 2016 13:11
-
-
Save darklilium/c466e3fb8444c0083161 to your computer and use it in GitHub Desktop.
[JQuery+CSS]Funciones JQuery para css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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