Questions tagged as 'jquery'

1
answer

How to save a JSON locally?

Direct question: What is the best way to save a JSON file locally and how to do it? Details: I have a web application that receives user data using the Facebook API (Javascript SDK), I need to save this data to a JSON file locally. After sa...
asked by 27.10.2015 / 19:46
2
answers

Compare values of "input" elements with javascript or jQuery

Well, I tried to make this fiddle to understand how to do element condition comparisons with javascript, but I do not know what went wrong. var username = "admin"; var password = "admin"; function validarUsuarioSenha() { if ($...
asked by 03.06.2015 / 01:14
2
answers

Save to database using jquery

I need to get the data typed in my modal window and set it in the database. Below are the pages. listUser.php <div class = "conteudo"> <div class="container-fluid"> <div align="left" id="in...
asked by 01.06.2015 / 21:49
2
answers

How to retrieve the option in the click and select the item that is in its value?

<div class="escolher_temas"> <form action="iframe.php" method="GET"> <select name="escolhe_tema"> <option value="http://z05.axitech.com.br">Tema 1</option> <option value="http://z06.axite...
asked by 30.05.2015 / 14:34
2
answers

Set the value of the input whose name has brackets

As described in the title, follow the example below: ---- HTML <form id="nameGenderForm"> <table id="teste"> <tr> <th >Name</th> <th >Gender</th> </tr>...
asked by 08.11.2015 / 18:16
1
answer

Leave the center bar using dragdealer.js

I'm using this library to create bars that the user can interact with: link . I would like the drag bar to start at 0, in the middle of the bar: However,Ihaveitasfollows: HTML:<divid="just-a-slider4" class="dragdealer"> <div sty...
asked by 08.11.2015 / 18:04
2
answers

How do I count the number of rows within a div that does not have a "line constraint"?

How can I count the number of rows in a div that does not have a \n or a <br> at the end of each row? Exemplifying: var el = document.getElementById('theDiv'); lines = el.innerHTML.replace(/ |^\s+|\s+$/g,'').sp...
asked by 20.05.2015 / 16:53
3
answers

AngularJS vs JQuery input mask

I have ng-repeat and I need the input field to have the following format:    9,999.99 Code : <tr ng-repeat="item in estado.tabela | orderBy:'ano'"> <td>{{item.ano}} </td> <td> <inpu...
asked by 15.04.2015 / 15:49
2
answers

Image Size Validation

I'm trying to use the jQuery Validate plugin to validate a file field. I just want to check the size of the image. If it is larger than 3mb it is not to submit the form. See my code below: $.validator.addMethod('filesize', functio...
asked by 27.11.2015 / 18:53
2
answers

JQuery how to set a value in a field with CPF mask?

I have an input using an example CPF mask: $("#cpfDependente").mask('000.000.000-00'); and I'm trying to set a value in the input this way $("#cpfDependente").val(dependente.cpf); It correctly directs the problem is that the masca...
asked by 16.11.2015 / 20:35