Questions tagged as 'jquery'

3
answers

How do I always leave margin margin at the bottom of the page?

I have CSS in body : margin-bottom: 20px; But always buga, for example, if I use position: absolute; it loses this 20px margin. How to do this in other ways?     
asked by 10.04.2014 / 22:30
1
answer

How to lock the keyboard in jquery?

How to lock the whole keyboard in jquery, especially the esc key to full screen, I want you to not quit the fullscreen when you press esc example: $(document).keydown(function(e) { if (e.keyCode == 13) { return false; } if (e.keyCo...
asked by 10.05.2014 / 14:31
3
answers

Text Paging

How to page text with JQuery? I have a large text of about 5000 characters and I need to make it stay in about 5 pages with the option of NEXT PAGE and PREVIOUS PAGE, I researched and found no tutorial on the subject, only plugins that do this,...
asked by 19.06.2014 / 22:15
3
answers

Placeholder does not work in Textarea [closed]

I have form with textarea , I put a placeholder in the input and it works perfectly, less in textearea . <form name="trabalheConoscoFormulario" id="trabalheConoscoFormulario" action="" method="post" onsubmit="ret...
asked by 05.12.2014 / 13:03
1
answer

How to allow to enter only "yes" or "no" with RegExp in an input?

What is the regular expression to allow you to only type yes or no in a field.? It is allowing you to repeat the characters and can not. $('body').on("keyup",".logical",function(){ $(this).unbind('keyup').bind('keyup',function(e){ //vou bus...
asked by 03.12.2014 / 20:57
2
answers

Using RegEX to get a certain value

Am I using this "string?" in regex ^\/(.*)\w+$ it detects values that start like this: /STRINGQUALQUER would like to get STRINGQUALQUER , what code do I use? I use jQuery.     
asked by 29.11.2014 / 16:39
2
answers

Apply jQuery effect to the current HTML element?

I have the following code that when I put it to run, it gives display: none and display: block on all elements and I would like it to apply this effect only to the current element: //jQuery $( ".titulo" ).mouseover ( function() {...
asked by 02.09.2014 / 22:59
1
answer

Delete data without refreshing the page

I am no longer using extra pages to use functions within the PHP page. I use PDO with a php for the functions and use everything in the page without loading anything external. My question is how to use ajax in this case. Home I want to send a...
asked by 22.12.2014 / 19:50
1
answer

How to improve a star rating code?

I have a website and certain points hold me, like this evaluation, is not very cool this script , someone fit can improve for me or tell me what can improve, to leave the code more organized, check if user selected some star, give error message...
asked by 15.12.2015 / 23:24
3
answers

Execute command with variable -JS

Good morning, On one page, I have some div that I've put an effect on for them to appear (toogle) I would like this effect to be rotated whenever I execute its function. So, I discovered this function that shuffles the contents of an array...
asked by 20.10.2015 / 16:29