Questions tagged as 'javascript'

3
answers

How to return the first and last day of the current month in JavaScript?

I'm not sure how to return the first and last day of the current month in JS.     
asked by 02.08.2017 / 21:51
2
answers

What does the term typeof module mean in javascript?

What does the term "typeof module" mean in javascript? Example: function(c,p){"object"==typeof module&&"object"==typeof module.exports?module.exports=c.document?p(c,!0):function(c){if(!c.document)throw Error("jQuery requires a windo...
asked by 07.07.2017 / 00:38
2
answers

How do I get text input into an input and insert it into a label?

I have the following code <div class="index-login"> <input id="email" class="input-text" type="email" placeholder="Email" > <button type="submit" class="loginBtn loginBtn--proximo btn btnProximo">Prox...
asked by 10.04.2017 / 17:02
6
answers

What is the safe way to set a default value for a function parameter? [duplicate]

In PHP, I can have a function default to a value in a parameter. Example: function func($a = 1, $b = 2) { return $a + $b; } What about JavaScript? Can I make the same statement in Firefox 39 ; function b (a=1) { return a;...
asked by 02.10.2015 / 14:02
8
answers

I can not learn syntax for

I can learn subjectively for a few seconds, but I can not fix it no matter how hard I try. I've done classes, I've done exercises and everything, but the syntax and variations just do not fix it for me. For example, if I do: for(var i=0; i&...
asked by 24.09.2014 / 05:02
1
answer

How to show the value of the bank on a star rating?

I was able to do the star rating system, but I wanted the vote to be displayed on the screen or saved in the star so that it would be filled according to the votes. Could someone help me, here is my code: This is the page where the stars are:...
asked by 29.08.2015 / 16:46
8
answers

Do not allow saving image of a web page

I do not want the "save image as .." option when I right-click on an image in an HTML page. That is, it will be impossible to save the images from the site. How can I do this verification?     
asked by 06.02.2014 / 13:54
1
answer

How to catch parameters passed by the URL using javascript? [duplicate]

How to catch parameters passed by URL (GET Method) using javascript? is it also possible to capture parameters passed via POST method?     
asked by 24.05.2015 / 14:28
2
answers

How to make a form with date field? (DD / MM / YYYY)

I am a beginner in Kohana and need to make a form with a date field. My form is this: <?=form::open('controllerInscricao/index')?> <?php echo form::select('TURMA_codturma', $TURMA_codturma); ?> <br><br> <div>Matr...
asked by 01.02.2015 / 23:37
2
answers

Send and receive variable to another page

I want to send a variable to another JavaScript page using the onclick button. I can send and see in the address bar its value. The problem is receiving on the second page. Example: var object=3; function btn_onclick() { window.location....
asked by 12.03.2015 / 13:41