Questions tagged as 'jquery'

2
answers

jQuery validate submitHandler does not work in firefox

With the following function below, I can send the data via ajax quietly in Chrome, but when testing in Firefox, no error occurs and data is not sent. $('#form_lista_amiga').validate({ rules : { cpf: { required: true, cpf: true }...
asked by 26.02.2015 / 18:36
1
answer

How to center a binary tree?

I need to properly center this binary tree template. jQuery or JavaScript can be used. I'm going to need to generate the code with PHP , so you need to have some logic in html . Another detail is that you need...
asked by 09.01.2015 / 04:23
5
answers

Is it possible to include elements in the DOM after it is loaded and ready?

I have a table that, depending on the amount of an X value, it inserts a set of attributes at the end of the page (fields). These elements have events assigned to them. But that's not the point. Problem is that: since I add the elements after...
asked by 06.02.2014 / 17:08
4
answers

Read value input type file doubt

One question, why does it work: $("input[type='file']")[0].files[0] And that's not it? $("input[type='file']").files[0] // TypeError: $(...).files is undefined     
asked by 01.10.2015 / 16:03
2
answers

Get parent div attributes through child elements

I have several structures that follow a unique style: <div data-id="1"> <div> <button>Descobrir é o data-id desta estrutura</button> </div> </div>
asked by 05.08.2015 / 21:22
3
answers

Put two Yes and No buttons in a Javascript message

I need to do just that:    If the user clicks No, system closes the message and keeps the information on the screen. On the screen there is a limpar button and it calls the acaoLimpar() function but without displaying a dial...
asked by 15.01.2016 / 14:06
2
answers

Enable and Disable Save Button

I am developing a Revenue / Expense launch system and this works according to what I initially need.    Processes. Revenue Posting, adds the amount of Revenue to the account table.   Example:   Initial Account Balance = 0.00   Revenue...
asked by 11.10.2016 / 16:55
1
answer

How to create a default margin in the ckeditor?

I started using CKEditor And when initializing it, it comes as follows: And I would like it to come with a standard margin (I want it to look like A4 sheet) How could you make it come with a spacing?     
asked by 12.02.2015 / 21:07
1
answer

DIV activating scroll in another DIV even with different sizes

I have two div of the same height, but with different contents. And when I do the scroll in one, I wanted the other to go in the same (or at least close to the same) position. The problem is that their contents do not have the same...
asked by 07.05.2014 / 18:29
1
answer

How to retrieve via Ajax query result variables in PHP?

I made a query via Ajax which returned the variables within PHP : // Variaveis $nome = $Fetchi['nome']; $email = $Fetchi['email']; $tipo = $Fetchi['tipo']; $senha = "Digite uma nova senha..."; $ativado = $Fetch...
asked by 03.08.2014 / 14:52