Questions tagged as 'javascript'

1
answer

Why are you returning undefined?

Why does my function return undefined ? Where does that come from? function Maths(){ this.raiz = function(numero){ if(numero<0) return console.log("No disponible para números imaginarios"); return numero%1===0 ?...
asked by 31.08.2017 / 02:14
2
answers

Change the opacity and styles of different divs when the mouse passed over

What I want to do is when I hover over the div with class "pilot tetsuta" go to be like background (that is, play with the opacity as I say in the title), and the div with class "about-tetsuta" becomes visible, occupying a...
asked by 30.08.2017 / 12:19
2
answers

Format date javascript

I have the following string: var fecha = "10-ene-2000"; I would like to format it in the following way but still be a string: var result = "2000-01-10 00:00:00" How can I do it automatically?     
asked by 29.08.2017 / 09:18
3
answers

Use of single and double quotes within an echo

I would like to know how I can do this correctly: echo "<div class='table-row nocomp' id='t1' onclick='getTask1('t1','https://asd.com',5);'>" The problem, as you can see, is here: 't1','https://asd.com',5 where I'm using single...
asked by 23.10.2018 / 17:07
1
answer

Hide and show DIVs

I am trying to do a questionnaire that by clicking on the radio button, go to the next question, but I have a detail with the counter and print question 5 after 1, I thank you very much if you can help me with this question , thank you....
asked by 19.06.2018 / 20:17
3
answers

Overwrite Object

my question is this, I have an array with an object, and I do not know how to overwrite the value of the object I mean, array = [ usuario: 21312321, constraseña: "erica" },...] What would interest me would be to edit the...
asked by 22.06.2018 / 01:20
2
answers

How can I refresh a form made with ajax so that the inputs are clean?

I have a form made with ajax using Ajax.BeginForm this I have it in a modal, the problem that I have is that when I send the form I make the modal one close with jQuery but if I open the modal the values of the inputs that I had pr...
asked by 22.06.2018 / 14:42
2
answers

Make preloader last 5sec

I would like to know how to make the following preloader last me 5sec before showing me the entire html document. .preload { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -42px 0 0 -12px;...
asked by 13.05.2018 / 02:55
2
answers

Access a document.ready variable from outside it

Good, I have a variable nombre within document.ready that I want to access from outside document.ready but I can not. If I declare the variable outside the document.ready , when I assign a value within the document....
asked by 21.09.2017 / 08:59
1
answer

Bootstrap - datetimepicker inline does not work

I need to visualize the calendar in inline form, like this: This is the code I have: <div style="overflow:hidden;"> <div class="form-group"> <div class="row"> <div class="col-md-8"&g...
asked by 22.03.2018 / 13:54