Posts by Luiz Tanure • 161 points
6 posts
- 
		3 votes1 answer256 viewsA: cycle2 plugin does not work when using api(). htmlI did a test here and it seems to be working normally, but it seems that you forgot something from navigation and maybe css. See the test in jsFiddle: and it seems to be missing that: '<div… 
- 
		2 votes4 answers13342 viewsA: Multiple lines of text or code with method ". html()"A simple but not very recommended way to facilitate the error is to simply escape the line break with a bar \ $( '.qualquerClasse' ).html( ' conteúdo de 3 linhas de código: uma\ Duas\ Três' ); But… 
- 
		3 votes4 answers5304 viewsA: How to make an alert with animated echo?Take a different approach, accumulating error messages, in an array for example and inserting in the desired location, whether it is an element in HTML or passing to javascript. example in phpFiddle… 
- 
		1 votes3 answers2418 viewsA: Force jQuery event execution orderA simple but not very elegant way: $('#teste').on('click', function(e){ console.log( 1, e.type ); }); // 3 $('#teste').on('mousedown', function(e){ console.log( 2, e.type ); }); // 1… 
- 
		2 votes2 answers140 viewsA: How to create plugins in Sizzle?The answer, without jquery example of filter extension: Sizzle.selectors.filters.vazio = function( elem ) { return elem.childElementCount === 0; }; a functional example in jsfiddle according to the… javascriptanswered Luiz Tanure 161
- 
		2 votes2 answers140 viewsA: How to create plugins in Sizzle?Checking the documentation here, I thought the easiest is: JS: $.extend($.expr[':'],{ inline: function(elemento) { console.log(elemento, $(elemento).css('display')) return $(elemento).css('display')… javascriptanswered Luiz Tanure 161