Questions tagged as 'jquery'

1
answer

Add class to element on scroll [duplicate]

I have a website that in css, have these statements for the body: body { background: #fab52d; font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 1.6rem; color: #FFFFFF; overflow: hidden; } In the followi...
asked by 01.02.2017 / 18:17
1
answer

Fill in a Dropdown (Select)

I need to create a select In this pattern: <select id="Cidades"> <option></option> </select> Where the user will select his state, and then there will be a jquery that searches the cities according to the selecte...
asked by 21.11.2016 / 23:11
1
answer

Calculation Formula in jQuery with return

I have this listing ... I need to, when filling in the real value, I do: (actual value) - (purchase value) = purchase-versus-actual, and profit is (purchase-versus-actual) - (sales value), and fill profit. Butwantedreal-time,fillin,dotheopera...
asked by 23.11.2016 / 14:11
1
answer

put a load with jQuery on the button

I have a very simple button, but I wanted to know if it is possible to put a loading button when it is clicked. I wanted to use jquery. Follow the code for my button. .button { margin-top: 12px; margin-right: 20px; border...
asked by 22.11.2016 / 17:27
1
answer

how to change an image by clicking on a link

Hello, how do I change the src of an image when I click on a link to move forward? I have a long list of images and I would like to go forward according to the amount of images in that folder, instead of one by one that would be more than exhaus...
asked by 20.11.2016 / 15:12
1
answer

How to write data in webstorage without replacing the data already recorded? [duplicate]

I created a form and when the user completes this form the data is sent to the local webstorage and from there to a table. However, whenever I write a data in the localstorage the previous data is overwritten, can I get the data to be sent to...
asked by 28.10.2016 / 02:22
1
answer

script only in visible tags

I want the script to count only the <li> tags that are visible, but the code below counts even with display:none . Is there anything that does this? I have the following HTML: $( ".rodapeUlCat" ).append( $( "<...
asked by 25.10.2016 / 22:58
1
answer

How to simulate [mouseup ()] element by element using get ()

I have a web application which has elements of type input . <input class="switch-input" name="0" type="checkbox" /> <input class="switch-input" name="1" type="checkbox" /> <input class="switch-input" name="2" type="checkbox" /&...
asked by 22.12.2016 / 17:52
1
answer

Adding and Removing jQuery Inputs

I have the following form: <div class="col-md-12 form-group"> <div class="row" id="dep"> <div class="col-md-10"> <input type="text" class="form-control" placeholder="Nome do Dependente" id="dependen...
asked by 22.12.2016 / 12:57
1
answer

How to tell if a plugin is active

I'm trying to make my website just with a JS file and in it I would like to know if a particular plugin is loaded since for example the carcel I only load in a page. How do I test if the plugin is loaded to avoid getting errors on the con...
asked by 22.12.2016 / 19:07