Questions tagged as 'javascript'

1
answer

How to apply html to text found in javascript?

I need to make use of regex in javascript The situation is this: I need to get the text that is with you inside the element with the text class. After picking up this text, I have to look at it if it contains certain words or expressions....
asked by 15.12.2016 / 13:19
1
answer

identify a click outside the div with jquery

Well I know how to identify a click on an element. I do this: // Fecha Sidenav $("#Close_Sidenav").click(function() { $("#mySidenav").hide(); }); But I need $("#mySidenav").hide() to run when I click on the Close_Sidenav e...
asked by 17.12.2016 / 11:04
1
answer

Code Improvement

I'm doing a college job, to show the benefit of user interactivity with jquery. The way I did it was: Content is responsible for the part of displaying the image and doing some onclick function. However, in content exchange I have to return the...
asked by 09.12.2016 / 18:24
1
answer

How to put the same animation on two canvas at the same time?

I have an animation in "html5 Canvas" (using Flot Real Time) and now I need it to be cloned in real time for a new canvas, that is, draw the same thing on 2 canvas at the same time. So I just tried to give a copy of the image, but of course i...
asked by 16.12.2016 / 09:47
2
answers

Error in code using switch and new date

I tried to do a function that returns the day of the week we are, via switch in JS, but somehow, the result does not appear. I debugged all the code but did not find the error. Code: <!DOCTYPE html> <html lang="en"> <h...
asked by 14.12.2016 / 22:55
2
answers

Form Validation with Javascript

It shows the error only in one field at a time, ie the part of "getElementById ('tuser')" and the other tpass, is the element of error. I wish that if both are null, show the error in both at once. However, I would like to use this same method....
asked by 13.10.2017 / 23:16
4
answers

How to select more than one item in a Select Option

Hello, I need to choose more than one option in a select eg I could have a checkbox inside the select but I do not know how to do it, can you help me? <div class="col-md-3"> <label st...
asked by 11.10.2017 / 16:42
1
answer

Passing a variable from javascript to session

I would like to know how do I submit a value that I have in javascript for an @session. in the case it would look something like this: I have a variable:    var id = $ (Person) .val (); This ID wanted to use in a session variable, but...
asked by 25.11.2016 / 04:42
1
answer

angular - Update values of radiobuttons with textarea

By popover I want to subtract the values of the radiobutton, who should come to a textbox of preference per line, then when the user wants to add options just insert a new value in the next line. <divng-repeat="controle in dataform.contro...
asked by 18.11.2016 / 02:09
3
answers

how to execute a specific button in a list of 5 identical buttons

I'm doing a dashboard with users and need an edit button. When the edit button runs it just makes code appear and disappear, but wanted to know if it's possible to execute jQuery code and select the button id. <aid="1" class="edit">E&l...
asked by 07.10.2016 / 12:34