Questions tagged as 'jquery'

1
answer

Script this considers enter as white space

I made a script to remove whitespace from a string inside a TEXTAREA or INPUT, follow the code just below: input = 'input[type="text"]:not(.inputData), textarea'; $(document).on('blur', input, function(){ console.log('blur'); $(th...
asked by 16.02.2017 / 15:04
1
answer

AngularJS - Where to put Jquery / JavaScript functions

I have some functions in jquery that would normally be in a .js file, but when I use Angular where should I put following the good practices? Example: I have a function that determines whether or not my Header is hidden depending on the size...
asked by 07.02.2017 / 21:27
2
answers

Prevent multiple submit via jQuery

I'm doing a form with validations from abide (Foundation 6) and I'm not able to prevent multiple submit's. The following happens: When the Submit button on the form is clicked the following function takes effect. $('#form-principal').submit...
asked by 08.02.2017 / 14:12
3
answers

Horizontal scrollbar table

I've set up a table with CSS, but I'm having a problem when reports are opened on a phone or tablet. The table is flattened, or data is confusing. Can you put a scrollbar horizontally, and prevent the data from flattening? Follow the table...
asked by 13.02.2017 / 17:14
2
answers

Problems in capturing input when opening modal

I'm trying to capture the value of an input from a modal once it's opened. I did this, but it did not work: $('#modal').on('show.bs.modal', function (e) { var var_tipo = $("#campo_tipo").val(); //testando variavel alert(var_tipo); });...
asked by 14.02.2017 / 19:40
3
answers

Enable submit button if CPF is valid

I used the hint of this link here >. But I'm trying to implement something more that I need and can not do. Next: I need to test if cpf is valid and if it is, I release the register button. For this I test the cpf with the button register d...
asked by 06.07.2017 / 14:57
1
answer

Remove object over time

Well, I have the following modal <div id="alerta-imagem"> As imagens de perfil precisam ter altura e largura proporcionais, com tamanho máximo de 200x200 </div> I looked in google some ways, but I only found setTimeOut()...
asked by 23.10.2016 / 03:22
3
answers

How to put a element in Fullscreen [duplicate]

I looked for a little bit about the same in google and most people talk to use position: absolute; z-index:9999; width:100%; height:100%; top:0; left:0; But the code above only works to by in fullscreen inside the window, and that's not w...
asked by 17.01.2017 / 11:54
1
answer

javascript validate if the number contains +/-

I have a problem, I have a function that makes a debit in the database, but if the User changes the amount by placing arithmetic operators the value becomes negative, thus crediting credits to the user instead of discounting. How can I valida...
asked by 02.11.2016 / 00:35
1
answer

Open DIV with Select in div Cloned with jquery

I have a div that can be "cloned" in jquery, so when I click on "Show Product" the product tab will appear and it will show a select, and clicking on that select open the GROUP 1 div (inside the product div) inside this div opens another select...
asked by 08.11.2016 / 15:57