Questions tagged as 'jquery'

1
answer

Winning check game of old Jquery

I created a function to check lines in horizonal, vertical and diagonal, to see which is the winner, but when I call the function it shows the winner on the first click. Can someone help me with what to change in the code for the logic to work?...
asked by 18.01.2017 / 13:54
1
answer

Scroll bottom in click event

I need the page to go down to the footer when it is clicked on a input . In fact when the user clicks on input and starts typing, the jQuery autocomplete is hidden by the cellphone keypad, so when clicked on input and the...
asked by 17.01.2017 / 14:12
2
answers

Get all the IDs of the elected ones in jQuery

Well I remove the CSS of a certain element like this: $('#menu' + this.id + '').removeClass('open'); What I need to do and remove from all elements #menu less than informed. I tried to do this: !$('#menu' + this.id + '').removeC...
asked by 14.07.2017 / 14:18
1
answer

Include properties of a $ .axax function dynamically

Is there any way to edit the $ .ajax function so that it includes the "date" property when it receives a value, and removes it when it does not receive it? that is, dynamically? Example: When the variable date has value: var parametro = "{i...
asked by 20.07.2016 / 08:17
2
answers

How to get and count elements that do NOT have a certain CSS property with js / jquery?

I need to count the elements within a div that do not contain the display:none property, then calculate and add up the width of all those elements. The function to calculate and add would be this: $('#gallery').children().each(functi...
asked by 18.07.2016 / 02:31
1
answer

How to save HTML in Mysql

I have a deadlock over storing an HTML in the DB. I'm using the property in php: htmlentities($_POST['codhtml']) to perform this operation. But when saving a code like: <span class="frase-aditivo mover" id="adt6-enable" style="transf...
asked by 14.06.2016 / 20:25
1
answer

How do I know if the browser scroll is close to the height of the div?

I'm trying to make the divs that are hidden at the same height (or next) as the browser scroll appear (individually) as fedeIn effect. Can anyone help me with any ideas?     
asked by 17.01.2016 / 17:53
2
answers

Ajax Jquery return variable giving error

I have the following script in ajax : $("#contato").on("submit", function () { if($('#descricao').val() == "") { //verifica apena o texto alert("Descrição não está preenchida!"); $('#descricao').siblings().eac...
asked by 06.11.2016 / 19:48
1
answer

How to use .toggle () to swap animations

I am trying to toggle the animation of a div using .toggle() , but this div , which is the first gray ball, simply disappears after I click the button (orange ball), instead of returning to its position initial. function mai...
asked by 14.02.2016 / 22:01
2
answers

Is there any way to do toggle with attributes in jQuery?

In JQuery , we have a function called toggle that allows us to switch between the element to be visible or not. And the toggleClass function, which allows you to switch between adding a class or not. $(function () {...
asked by 18.02.2016 / 19:50