Questions tagged as 'jquery'

1
answer

Code only works when you restart the PC

I'm creating an application mostly in PHP, and it occurred a few times when making a call in Java, JQuery or CSS and sometimes even another page in PHP and it does not work as it should. I ran the code and everything was ok. So I restart the...
asked by 26.01.2018 / 12:57
1
answer

List Bank result in checkbox with AJAX and JQuery

I have a function that searches the database for an entity list and shows it in select. However, I need this same list to be shown in a checkbox where the user can select more than one option. Showing this list of results in < input type="checkb...
asked by 05.06.2018 / 15:43
2
answers

Get an html and save in variable

I have a simple html in file and I want to ghetto it in a variable to use, I did the get like this: let popup = ''; $.get( "popup.html", function( data ) { // the contents is now in the variable data console.log("data"+data);...
asked by 09.03.2018 / 18:06
1
answer

Jquery .after ()

The error in the code is that when I click the "Add" new input file button, the intention is to add only one field after the last, but the button triples. My HTML code looks like this: <div class="col-md-8"> <div class="form-grou...
asked by 10.03.2018 / 17:16
1
answer

AJAX request with different domain

My Request url="http://algumip:algumaporta/dowPDFNF?cChave="+chave $.ajax({ url: url, dataType: 'jsonp', success: function (data) { console.log(JSON.stringify(data)); }, type: 'POST' }); error that returns: U...
asked by 10.05.2018 / 16:03
1
answer

Position focus on a modal window field - JavaScript and Asp.net MVC

I have a view model that has a block that opens modal windows for CRUD actions. I have 4 partial viewls: create, delete, details and edit ... All in common have the field Description (Description). I need to make sure that whenever the modal win...
asked by 11.05.2018 / 00:26
1
answer

I have a problem with a script

Good code: <!doctype html> <html><head> <meta charset="utf-8"> <title>Documento sem título</title> <!-- PLUGINS --> <link href="/plugins/animate/animate.min.css" rel="styleshe...
asked by 07.01.2018 / 11:52
1
answer

(javascript) function returning undefined [duplicate]

I'm trying to return a value from one function to another, get_Positions () has to get the lat and lng from parseJson (date), it's just returning undefined.  I want to get these two values from within get_Positions (). get_Positions();...
asked by 06.01.2018 / 07:36
3
answers

JavaScript or jQuery - Remove attribute pseudo elements

.btn-group-vertical>.btn-group:after, .btn-group-vertical>.btn-group:before, .btn-toolbar:after, .btn-toolbar:before, .clearfix:after, .clearfix:before, .container-fluid:after, .container-fluid:before, .container:after, .container:...
asked by 05.01.2018 / 20:35
1
answer

Counter with Ajax

Is there any way to create a counter type with Ajax? I have the following code, which when we make a submit in a form, it calls this ajax, and executes the pre-defined processes. I would like to know if after 3 events (clicks) ajax direct...
asked by 20.12.2017 / 22:05