Questions tagged as 'jquery'

1
answer

callback in removeClass function jQuery

I'm trying to use callback in the removeClass function but it's not working, does anyone know what's wrong? I need to run removeAttr only after removeClass is finished. $(".context_menu_pai").removeClass('ope...
asked by 14.07.2017 / 00:02
1
answer

jQuery read json and display sub-levels only if they exist

I would like to do a validation, make a for the first level and second level of a json, the second level should be printed only if there is this second level in the item of the current array. Ex json down: content = { "primeiroNivel0": {...
asked by 12.07.2017 / 22:58
2
answers

jQuery doubt all elements are affected by function

I have the following function, which works to change the arrow of an accordion when it is active (open), arrow down to reverse up, and then return to the original state, but all arrows are affected, and not just the one I'm clicking at the momen...
asked by 11.07.2017 / 11:23
2
answers

Create a one-size box with a scroll bar

I want to create a box that has a unique size, but that has a scroll bar in it to view the complete content. I want to use this to detail something.     
asked by 25.04.2017 / 17:23
1
answer

Change vh by px

I'm having the following problem: I have a page that has several slides in HTML itself. All of these slides have their size set to vh instead of pixel . The problem is that when I access with mobile, the cell being horizontal...
asked by 26.04.2017 / 17:47
1
answer

How to make foreach jquery not repeat data when I open window model?

I have a modal window that when I open loads the data I need to have through a foreach jquery. However, if you close modal and reopen, all data coming from foreach is repeated. How can I prevent this? jquery $(...
asked by 24.04.2017 / 17:48
1
answer

How to take a selection from an input type="image"?

I'm programming for the web not long ago, and I can not get a selection that stays when I click? Does anyone know how to take it?     
asked by 15.05.2017 / 21:37
1
answer

Problem with show / hide

What happens is that if I open a div when I click on another button it opens the same div and they are all open. What I want is that when you click on a button to open the div, close the div that is currently open. Jquery $(docum...
asked by 21.04.2017 / 15:23
2
answers

pass the id of an input to another page

I have a form that in the inputs field has id and when submitting the form I wanted to retrieve those values in my code. <form action="edit.php" method="post"]> <label class="" > <span class="legend">Requis...
asked by 17.05.2017 / 03:26
1
answer

Keep values in the fields during Jquery / PHP validation

I have a form which I am validating using jQuery / PHP. After 50 years of using it, I realized that during validation the field values are erased. How would I keep the values in the fields during validation? Look at the code: HTML <for...
asked by 16.05.2017 / 00:31