Questions tagged as 'jquery'

1
answer

All tabs appearing when updating page materialize

Does anyone know why this happens? When I refresh the page it appears a part of the following tabs and then disappears when it finishes loading. I want to prevent this from happening. HTML<sectionclass="section-cadastro blue-grey darken-...
asked by 30.01.2018 / 02:16
2
answers

iterate array with element id to show / hide

I have several arrays that hide or display fields based on the change event of a select, the problem is that by iterating the array with the id of the elements only the last value of the array is displayed, as if the instruction inside the loo...
asked by 30.01.2018 / 04:41
1
answer

Get value from date-attr and insert into another element

I have a dynamic listing with PHP, and when I click on a "< tr >" of the table that is listed, it should open a modal with various information. What I want to do is assign certain values of the listing to Data-attributes, and with Jquery,...
asked by 11.05.2018 / 02:55
2
answers

Insensitive search when typing in INPUT

I have the JavaScript search engine below. The problem is that when I type the word " tomato " it looks for the word " tomatoes ". It's probably a sensitivity problem or you're just picking up part of the typed word. Would it be possible to fix...
asked by 09.05.2018 / 19:44
1
answer

Value in the input element is not displayed - (although value is being loaded correctly) - Jquery

Hello I'm returning an object through ajax and assigning the values to their fields. Usingthetitlefieldasanexample:$('#txt_titulo').val(objeto_menu.titulo);However,InoticedonethingwhenIopenedthebrowserconsole.<inputtype="text" id="txt...
asked by 10.05.2018 / 22:16
1
answer

Catch the margin of the previous element and add another value to the next one

I have the following code: <script> $(document).ready(function() { $("div#bloco div").css({ "background-color" : "red", "height" : "50px", "width" : "50px" }); $("div#blo...
asked by 10.04.2018 / 18:11
1
answer

Update menu via ajax

When I clicked on the menu item of my application it always updated the page, I'm changing to update the pages via ajax however I'm having difficulty with functions with names based on the class event, example the delete function when I click it...
asked by 03.03.2018 / 19:53
2
answers

ToggleClass is not working

I'm trying to create a list of elements with elements hidden inside each li tag. When you click the li, the hidden elements appear, but when I click again they do not close. This is the JS code: $('.box-content-minhas-ofertas .offer-list')....
asked by 15.03.2018 / 00:10
1
answer

Error in firefox to focus on input, after the blur of the element itself?

I need the input to be in focus after blur if it does not meet the requested value. The data of this form are dynamic are created after a query ajax , here in snippet the code worked, however in my application after...
asked by 08.03.2018 / 15:56
2
answers

Jquery - Having 2 menu (hamburger), how to close a menu while the other is open?

Good afternoon everyone! I made a structure where in mobile I need to show 2 menu's, but when I click on a precise one the other close and I can not do it, currently I can only open and close if I click on it, could you help me? > Thank you...
asked by 13.03.2018 / 16:51