Questions tagged as 'javascript'

1
answer

Multi-line header jsPDF

I need to generate pdf from a table, but my header has several lines and my code is overlapping these lines, I need every tr to be on a different line, how could it be? var startColPosition=defaults.pdfLeftMargin; $(el).find('thead').fin...
asked by 11.09.2018 / 22:43
2
answers

put checkbox value in email?

How do I put whether the user checked the form's check box or not? Form: <form id="form2" method="post"> <input type="text" placeholder="NOME" value="" name="nome1" id="nome1" /> <input type="email" placeholder="EMAI...
asked by 22.09.2016 / 20:45
2
answers

Jquery, .val () does not take input text [closed]

I have a following code: INPUT <div class="row"> <div class="form-group"> <div class="col-sm-3">...
asked by 17.10.2016 / 21:40
1
answer

Assigning the radio button through the div

I need to do a simple questionnaire and multiple choice answers, in this case I chose the radio button ... In my PHP I'm getting the posts and I'm already doing the verification of responses with if . My problem is, in the layout there...
asked by 06.03.2018 / 05:15
1
answer

Create a video by javascript

I tried to create a video on my page which is generated by button click through javascript, as follows in the code: function tocar_video(mysrc){ var video = document.createElement('video'); video.src = mysrc; video.autoplay = true;...
asked by 27.02.2018 / 16:57
1
answer

How to pass data from an input to javascript and then display it

I have this code to fetch the value of my input <Script> var name = document.getElementById("name").value; I would like to know how to introduce it in a spam for example     
asked by 19.03.2018 / 16:00
2
answers

Add numbers within input in sequence when clicking

I have this input <input type="text" readonly="readonly" class="form-control form-sm input_digitacao"> And I have this script $(".numeros_ligacao li a").click(function(){ digito = $(this).html(); $(".input_digitacao").val(di...
asked by 26.03.2018 / 22:31
2
answers

(javascript) Get value from a very complex html structure

I'll try to be quite objective: How do I get the value inside a tag that is within 200 million other childs? (assuming I can not make changes to the code, because it's the code for a site that I need to filter to collect specific data):...
asked by 11.02.2018 / 19:12
1
answer

How to save JSON data to the hard drive? (or access them with javascript)

I'm working on an application to study the syntax of languages used on the web (html, css, javascript and etc ...) through a question and answer mini-game, but my problem has been how to save that data . The method I learned is this below:...
asked by 24.02.2018 / 16:31
4
answers

How to create an empty / null value in select dynamically?

I have a select of cities that is populated dynamically with the query returned in the databases, however when the values in the option is played the default value empty some prevents select an empty line. See: % empty%: Selec...
asked by 24.05.2018 / 14:09