Posts by Rui • 302 points
7 posts
-
3
votes1
answer54
viewsA: How to create elements of a typehead in a div
Here’s an example of how to do what you need: $(function () { v1 = $("#elemento").val(); $('#elemento').keyup(function() { v1 = $("#elemento").val(); $('#texto').append("<p>"+v1+"</p>");…
-
2
votes0
answers203
viewsQ: if elseif Else with conditional operator ? and : in PHP
We know there is a way to make an if Else using conditional operator, but would you like to know if there is a way to make an IF ELSE IF in PHP using conditional operator? if yes how? could send me…
-
3
votes4
answers10811
viewsQ: How to get the text of the selected option inside a select?
I have the following code: <option value="1">item 1</option> <option value="2">item 1</option> <option value="3">item 1</option> I want to get the text inside the…
javascriptasked Rui 302 -
1
votes1
answer85
viewsQ: error installing github npm
I installed npm and set up my proxy after that when I try to install any library for example git hub, it appears these errors: npm ERR! node v6.11.3 npm ERR! npm v3.10.10 npm ERR! code…
-
0
votes1
answer57
viewsA: Page redirection with error message
Adriano! uses php’s header() function, with it you make this redirect. Ex: Header(Location: 'www.google.com');
-
1
votes2
answers1472
viewsA: How to use Javascript to lock a keyboard key and display alert in the field about the recommended key?
Have a jQuery event that is called keypress, by parameter you pass a function with an if if the comma key has been pressed ie : Ex: $(document).keypress(function(e) { if(e.which == 188) { alert('You…
javascriptanswered Rui 302 -
2
votes2
answers55
viewsQ: Severe Error in PHP Language
I discovered a BUG in the php language and I’m looking for a logical explanation for this, I have the following Code: <?php echo (int) ((0.1 + 0.7) * 10); ?> And the result shown is: 7. Why is…