Questions tagged as 'jquery'

1
answer

Popover message in a div

Good morning. I have a div that when clicked opens a page. So far so good and it's working. Now as I do so that when the user hover over this DIV, a popover with the message "To edit click here" appears. My code looks like this: <div...
asked by 25.05.2018 / 14:27
1
answer

How to cancel an XMLHttpRequest using a button?

I am creating a file upload script that will be split into chunks according to the file size, thus creating multiple requests with different parts of the file, however I would like to put the option where the user can cancel an upload. This i...
asked by 24.05.2018 / 19:09
1
answer

How to know the version of the Jquery library just by viewing the codes made by other users?

I'm having a little jquery code here, offered by a member of that site that I ended up finding, and I do not know which version of the library I should load and run the code of others. I can not comment on the response he gave to another user be...
asked by 23.05.2018 / 20:59
1
answer

jQuery function that closes the search field by clicking Esc

On the site I'm developing, there's a search field that only shows input when you click on the button. Now I want to close the input when I click the Esc key (when the focus is in the field). I have done a function in jQuery,...
asked by 11.06.2018 / 22:48
1
answer

print variable Java script inside HTML

How do I print the various click inside the Html <script type="text/javascript"> $(".j_requerimento").click(function(){ var click = 1; $(".j_label_requerimento").append("<span>IMPRIMIR AQUI A VARIAVEL CLICK</...
asked by 11.06.2018 / 00:16
1
answer

How to identify the close event in MagnificPopup

I need to identify where the user clicked to close the lightbox MagnificPopup, because I'm going to take action on that. Option: -Close x -Escape -background which is the dark part . $.magnificPopup.open({ item...
asked by 12.04.2018 / 02:21
1
answer

jquery how to receive data line by line in a loop

In the test.php file I have: <?php echo "<input type='button' value='Envia' class='btenvia'/><br><br>"; echo "<div id='mostradados'></div>"; ?> <script src="jquery.min.js"></script> <sc...
asked by 17.04.2018 / 15:11
2
answers

I need a mask that always places the negative sign in front of the value typed [closed]

I need it to look like this: -20.00     
asked by 16.04.2018 / 22:06
1
answer

Return to top button [duplicate]

I created a basic script to show / hide a return button at the top of the page: $(document).ready(function(){ // Add smooth scrolling to all links $("a").on('click', function(event) { // Make sure this.hash...
asked by 17.04.2018 / 19:44
1
answer

How to show and hide element according to scroll?

I want to hide the image when scroll of the page is greater than 147, so that's fine, the problem is that I can not hide the image again when scroll is less than 146. The goal is to hide and show the image according to the scroll....
asked by 16.04.2018 / 19:12