Questions tagged as 'jquery'

1
answer

Uncaught ReferenceError: $ is not defined [closed]

Where did I go wrong?          form test             <script type="text/javascript" > $(document).ready(function(){ $('#meuForm').validate({ rules:{ nome:{ required: true...
asked by 04.03.2015 / 17:04
2
answers

How to persist / fill the data of a form via PHP?

... /busca?tipo%5B%5D=APARTAMENTO%2FAPTO+DUPLEX&area_de=50&area_at=100 In this URL I have 2 data types: type that is checkbox APARTMENT FIT + DUPLEX area_of which is select 50 area_at which is select...
asked by 01.11.2014 / 22:56
4
answers

Working with Array and selecting a specific index

In my studies in JS I have the following code: <select name='options'> <option value="a">A</option> <option value="b">B</option> <option value="c">C</option> </select> <input class="i...
asked by 30.11.2015 / 17:17
3
answers

Get data on page by javascript and convert it to integer

This with a problem, when I get a number inside a span by javascript I try to convert it to int with parseInt, but nothing. For if I try to make a sum with another number it ends up concatenated. and if I convert with parseInt it will appear 'NA...
asked by 08.10.2015 / 17:34
2
answers

Hide Div after x seconds after performing action

Good morning, people, I have in my home a field to consult CPF. The field has only a text field, where I inform the CPF, if I find any cpf in the database, it returns some data to me. I submit the form with ajax, not to reload the page, in th...
asked by 12.06.2015 / 14:49
2
answers

Integrate a jQuery plugin into a WordPress theme

I'm using Nivo Slider on my site from the basic example offered by the plugin. In the file header.php of theme I put the scripts and <div> with the images pointing to a theme directory. And in%% of slider initialization...
asked by 17.03.2014 / 15:33
1
answer

How to add a class to a div when it is active, so that it changes color?

I'm making a Bootstrap-based website, in which I have a portfolio zone, in which thumbnails open a respective collapsible DIV. I need when a collapsible DIV is open, the respective thumbnail changes its CSS formatting, in this case color. I trie...
asked by 28.03.2014 / 18:35
4
answers

Get the html of a created variable

I have a problem concatenating variables I've already created (I know .concat() ) and everything. Problem: var input1 = $('input').attr({ type: 'hidden', value: 1 }); var input1_2 = $('input').attr({...
asked by 16.06.2017 / 13:52
1
answer

How do I rotate an image with jquery?

Well it's the following I have the following code: <head> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script></head><imgsrc="roda.png"></img> <button>Rodar!</...
asked by 23.07.2017 / 12:28
2
answers

Position cursor at end of text when clicking input

Can you make every time I click the input the cursor moves to the end of it? Notice that in this image it is before 1 and wanted every time you click on the input it goes to the end.     
asked by 06.06.2017 / 21:47