Questions tagged as 'jquery'

1
answer

Capture Scroll by scrollbar

User fills out a form and clicks register. The system opens a modal window with the "I agree" button disabled. Just by scrolling the scroll bar all the way down the button must be enabled to register. By scrolling the mouse or touchpad everythin...
asked by 27.11.2016 / 20:07
1
answer

Sending ajax with notification

Good morning, I'm having a problem in a test, I'm returning a notification, but the notification of only one message, that is, a success message, I can not get an error message, type an if else , and I wonder if it's not a gambiarra what I did,...
asked by 28.11.2016 / 13:46
1
answer

Capturing URL parameter with jQuery

I'm currently capturing the URL as follows: $(this).attr('href') Let's suppose that the URL is: http: /teste.com/login How do I capture only the end: / login     
asked by 24.10.2016 / 02:06
1
answer

Get names of all fields with the required tag

I want to get the name of all fields with the tag required and test one by one, if one of them is empty, I enter the name in an array. This question resembles some things with this old question mine, but the context is different....
asked by 10.10.2016 / 20:09
1
answer

Transparent Navbar Bootstrap

Good afternoon, How do I make my page start with the transparent navbar and when I scroll down it becomes like "inverse"? I already tried to give background-color: transparent !important , but it was strange, as for the scroll, I did no...
asked by 26.02.2017 / 20:22
1
answer

problem using regular expression to validate e-mail

Hi, I'm using the following regular expression to validate an email field: var filtro = /^[a-zA-Z0-9.!#$%&'*+/=?^_'{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/; The functi...
asked by 27.02.2017 / 18:40
1
answer

Passing variables in Jquery .css ()

I'm having problems with the following code: //Desktop = D var posicaoMenuD = $('#desktop-menu').position().top(); $(document).scroll(function(){//Alscutador de scroll da página var posicaoScrollD = $(document).scrollTop(); //Obtém o scrol...
asked by 17.01.2017 / 01:50
1
answer

Add header in JQuery getJson function

Is it possible to add some header in jQuery's $ .getJson function? I'm having cross-origin issues and have read in some places that adding some header information can solve this problem.     
asked by 17.01.2017 / 13:37
2
answers

Bank check with ajax

I've never worked with ajax, but I need a form in a form to search the MySQL to check if the login the user is typing already exists. In the input field I put a onBlur for when the guy jumps from field the system to verify if th...
asked by 26.09.2016 / 19:55
1
answer

Check if an input was loaded with jQuery

I need to check if an input text was loaded on the page and check if it is populated, how can I do that? I've tried $ ('input') on ('load') but it does not work, and the way the script is done I can not make a $ (document) .ready. Who knows a so...
asked by 07.09.2016 / 20:48