Questions tagged as 'jquery'

1
answer

How to create a jQuery function to pull the menu up?

IwouldliketousejQuerytoraiseandlowerthismenu.Canyouhelpme?Theendresultshouldbethis...IstartedthecodebutIdonotknowhowtocontinue.$("#esconder_menu").on("click", function(){ // #header-main <---- esse é o id do menu a subir. });     
asked by 22.01.2015 / 01:29
1
answer

How to create a graph where the values presented in it will be in the DB

I have a table in my DB that records a progression of users. This table is made up of the ID / ID_USER / NOTA / DATA fields. Every midnight these values are recalculated. Assuming then that on 09/02/2015 the user had a grade of 380...
asked by 11.02.2015 / 01:05
3
answers

Remove an event handler after 3 clicks

I have this code, which I need the click event to be removed after x attempts. Example: link var qtdadeCliques = 0; var eventCon = function(evento){ qtdadeCliques++; if (qtdadeCliques >= 3) { alert("You clicked the di...
asked by 13.01.2015 / 12:48
1
answer

How do I insert an item before and outside another item?

How to insert an item via Jquery so that it stays BEFORE and OUT of another specific item (I accept edits to improve the way you ask). The following example inserts before, but within the add-mesa-de-luz-button item. $("#add-mesa...
asked by 16.10.2018 / 16:54
3
answers

Adding data from the array

I have an array that the data comes from the user's filled form and I make a map: dados.map(element=> { var x var number1 = parseInt(element.preco), number2 = parseInt(element.peso) var tota = number1 * number2...
asked by 19.10.2018 / 15:54
1
answer

Formatting currency in jQuery

I have the following HTML <table id="products_stock" class="table"> <thead > <tr> <th class="active">Produto</th> <th class="active">Categoria</th> <t...
asked by 08.12.2018 / 18:47
1
answer

Change site style / theme and store it in LocalStorage

I have a theme change system in my blog, however it has some problems, like, it can not change the style of a div.class added by jquery (addClass) or pseudo elements (after / before / active etc ) and it gets all disorganized !! I'm looking f...
asked by 04.12.2018 / 05:50
2
answers

How to make an animate up to the mouse position and after starting to follow the mouse?

I have the following code $(document).ready(function(){ var LeftInicial = $('.MarcadorMenu').css('left'); var WidthInicial = $('.MarcadorMenu').css('width'); $('.CorpoMenuHead').hover(function(){ $('.CorpoMenuHead').bind('m...
asked by 12.05.2014 / 16:27
2
answers

jQuery function to hide elements

I have a window that opens when I click on an element, blz. But how can I do to, by clicking OUTSIDE this window, it closes?     
asked by 21.05.2014 / 19:53
2
answers

Css in all divs generated by php / mysql

How to do when the mouse enters the div it increases the opacity to 1.0 and when it exits the div back to the previous opacity Example: PHP / MYSQL $query = mysql_query("SELECT * FROM bd) or die(mysql_error()); while ($row = mysql_fetch...
asked by 18.05.2014 / 20:01