Questions tagged as 'javascript'

2
answers

Get selected textContent from combobox with javascript

I'm trying to get the textContent from the combo at the time it is clicked on the Save button, so it will mount a table with the values typed in the input text and the selected combo. Html example: <div class="modal-content" id="cadastr...
asked by 14.06.2017 / 20:01
1
answer

Difficulty in passing parameters and arguments in callback

I have 2 functions, where I want, when satisfying a condition in the main function I must call an external function, using this external function the current parameter in the first function. //1 função function check_fields(element) { if(thi...
asked by 18.07.2017 / 01:44
1
answer

Parameter functions for click event do not work

I'm trying to rename a text with the click event and then "swoop" in the second click, I got the hint from a code I'd already seen on codepen , I'm passing two functions to the click event, but only the second one works, code: $('.texto')....
asked by 22.07.2017 / 01:55
2
answers

How to submit form data by JavaScript and redirect

I need to have my form send data to another page of the server so that it inserts into MySQL but redirects the user to another page but before it receives a message of success. However, for some reason, the message is not appearing. Form + J...
asked by 22.08.2017 / 20:06
1
answer

How to import external Jquery?

Good afternoon, dear ones. I'm having a problem importing the external javascript, (in the Jquery library case) The files are in the correct folder but when I call through src="" nothing happens. From this, thank you for your help....
asked by 12.02.2017 / 00:35
1
answer

how to close a popup with javascript

Well, I've put up a function to open a popup, and I need to put a link inside the popup to close it. Does anyone know how to do this? My code to open the popup function popup(URL) { var width = 1024; var height = 700; var left = 30; var top...
asked by 13.02.2017 / 12:00
2
answers

Transform text from string to image

Hello, I'm developing an app, and at some point I need to get a string that contains data from a voucher and turn that text into an image of the voucher and then share that image via whatsapp. I've never done anything like that and after some tim...
asked by 19.02.2017 / 19:26
2
answers

Change Word by clicking on it

I have the following field on my system: <div class="col-lg-2 target" id="cread1nd"> <div style="width: 150px;" class="input-group "> <input type="text" placeholder="00.00" name="cread1" class="form-control" min="0"...
asked by 13.03.2017 / 16:01
1
answer

How to link the Id's of two API's with ANGULAR? [closed]

I have two functions that query two methods of a Angular .. I need to compare the API of the results and only show that the id is equal , Thanks in advance! I have the following code: function SearchDespesa(response){ $this.Desp...
asked by 24.08.2017 / 01:59
1
answer

How to call a function inside an anonymous function?

Follow the code: minhaFuncao(); Here is the code: $(function () { $.connection.hub.start().done(function () { function minhaFuncao() { alert("ok"); } }); }); I get error:    MyFunction is...
asked by 13.03.2017 / 22:39