Questions tagged as 'javascript'

2
answers

Multiply elements of the same jQuery class

I have the following problem I need to multiply two values according to their class but I have more than two boxes where the values are to be multiplied, the multiplication nothing else does to me once here is my code <div> <div cla...
asked by 16.08.2018 / 01:11
2
answers

Search for words in a text with javascript

I have several words that I have to look for in a text for example: var keyswords = ["test1", "test2", "test3"]; and I want to search for each word one by one in a text, for example: esta es un test can someone help me in what role to...
asked by 08.05.2018 / 15:56
3
answers

Sum of numbers of a number in Javascript

How could you get the sum of figures from a number of 2 or more numerals . For example: The sum of figures of 134 in javascript.     
asked by 10.04.2018 / 06:20
2
answers

How can I give a margin to the text of the checkbox?

I have the following code: var fieldSet = "<div class='checkbox'><label><input " + propRequired + " data-is-common-control-note='" + IsCommonControlNote + "' data-is-required='" + IsRequired + "' class='input-details' type='ch...
asked by 18.04.2018 / 15:28
1
answer

Progressbar with text inside

I am trying to make a progressbar work that I have found and that is exactly what I need. The progressbar that I try to use is from this web , for more exact this . But for more quwe I try, I can not make it work, I do not see anything of the...
asked by 04.07.2018 / 16:50
1
answer

do without jquery

I want to do the following without the need of jquery, this caught me generates a random word from the db and js calls it to the tag p <div> <form action="js/js.js" method="post" name="frm"> <input type="button" name="catga" val...
asked by 04.07.2018 / 01:49
1
answer

Load a random image by pressing a key

I can not link my UP , DOWN , LEFT and RIGHT keys to the cambiarImagen function. With the id=boton I get ... but with certain keys not. <script> $(function() { var imagenes = [ '1.jpg', '2.jpg'...
asked by 04.05.2018 / 08:15
2
answers

How to avoid access to .js file from the browser

I have the following scenario:    I have a website that classically uses .js files, the problem is that if from the browser access directly to the URL of the .js you can see all the code of that file, for example if access to link , all the...
asked by 24.11.2016 / 19:43
2
answers

Result of iteration of array in a variable

Hi, what I want is to get a random value stored in a variable after iterating a loop array 10 times. The code that I've made just throws me a letter. If anyone can give me a hand with this, I would be grateful. Greetings. var palos =...
asked by 21.08.2018 / 11:43
1
answer

HTML5 Storage supports 5MB per variable or per web page?

I have a question, I am starting to use the localStorage HTML web storage but I do not understand if the capacity it accepts is per web page or per varible. I hope you can get me out of doubt, thank you very much.     
asked by 31.08.2018 / 05:59