Questions tagged as 'jquery'

3
answers

Clear only the field I want

I have this script: $(".btn_contact").click(function () { $.ajax({ type: "POST", url: "./Inserir16", data: $("#feedback_form16").serialize(), // serializes the form's elements. dataType: "json", suc...
asked by 11.07.2018 / 13:13
2
answers

How to put paging in foreach that returns a JSON list with ajax

I call this function that returns me a list and populates a table in the view, updating every time I pass a parameter through the filter. Everything works perfectly, I just need to put paging because it has search that returns more than 100 line...
asked by 28.03.2018 / 18:52
3
answers

Automatic scroll to the right

Is there any way in jquery of when to click a button on the page or a div to do a small scroll automatically?     
asked by 22.10.2015 / 17:42
2
answers

Hide Div Jquery

How can I do if there is value to display a none in all divs with car? <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script><script>$(document).ready(function(){$(".acionador").click(function() { if...
asked by 27.04.2018 / 21:10
3
answers

Enable and disable an event without deleting and re-creating the event

Is there any way to disable and enable an existing event on an object? Example, I have an event in an element <img onclick="foo();"> On this same page, there is an action where, while running, you need to prevent the user from...
asked by 21.08.2015 / 10:30
2
answers

Set model property in javascript variable

I have an Action Usuario that displays user details among other actions that can be performed. I also have a javascript code that needs to part of setting a model property in the javascript variable. Here is the code below: @mode...
asked by 23.07.2015 / 20:44
2
answers

Uploading image with Jquery

How to upload image using Jquery? This is a question that has been haunting me for a long time, I hope you can help me. Well, I've been researching and I've seen a plugin for this, ajaxForm. But I do not find structure to use it, in the pa...
asked by 25.05.2016 / 00:23
4
answers

Help with Jquery appear div [duplicate]

Good afternoon, I need help with jquery, here's an example: <ul> <li><a href="#1">Conteudo1</a></li> <li><a href="#2">Conteudo2</a></li> <li><a href="#3">Conteudo3...
asked by 16.05.2016 / 18:59
2
answers

Jquery Ajax - Problems requesting every x seconds

I'm developing a web application that I use ajax to do from time to time to see if there was a new update, but my code does not work perfectly. I'm new to jquery and I'm having trouble implementing this functionality. I took an example on the ne...
asked by 20.02.2018 / 00:59
2
answers

How to check the format and type of a text file?

I have an input file in which I have limited to only accept file whose format is a text file, with extension .txt . I used the accept attribute for this, see: accept=".txt" However, I would like to know if it is possible t...
asked by 25.01.2018 / 21:48