Questions tagged as 'javascript'

1
answer

How can I do a spy spy without bootstrap?

<html> <div id="navbar"> <div class="ui secondary inverted pointing top fixed menu"> <div class="ui container"> <a id="brand-item" class="item" href="index.html">...
asked by 26.06.2018 / 00:30
2
answers

Problem with .toLowerCase () at prompt

I have this basic code and it works well when I write the name. var user = prompt("Cual es tu nombre").toLowerCase(); if (user) { console.log("Hola " + user); } else if (user === null) { console.log("Ad...
asked by 25.05.2018 / 16:50
2
answers

Select only one checkbox at a time within a table and obtaining the data of the row marked using jquery

I'm just trying to select a checkbox while it is inside a table and get the data in the row. This is my table: <div class="table-container"> <table class="table table-hover table-custom border-radius-total-5 no-margin" id="ta...
asked by 29.05.2018 / 13:36
3
answers

How can I get the minimum and maximum date of a javascript fix?

I have this arrangement: var arr = ["2018-06-07","2018-06-30","2018-06-01","2018-06-21","2018-07-20"]; And I need to get the maximum and minimum date with javascript, I have tried with this function: var min = new Date(Math.max.apply(null...
asked by 20.06.2018 / 19:37
0
answers

What capacity should I acquire hosting to store a simple web page? [closed]

The page only allows viewing content and is made with php, css, javascript, html5 and bootstrap, I want to buy domain and host it in a hosting but I have not yet decided what storage capacity is best for a hosting hosting this type Web pages. 50...
asked by 02.12.2016 / 11:07
3
answers

Limit the length of a text with JavScript (Jquery)

How can I limit a text string with javascript or jquery ??? I have a data brought from the database, but that data is too long and I unravel my design, what I want is for example, if that data is greater than a certain number of characters co...
asked by 16.05.2018 / 17:02
1
answer

Return an array of Objects with PHP

I have the following code in PHP: $output = ''; $output .= 'values: [{ '; $output .= 'arg: "N", '; $output .= 'val1: '.round($Val1N / $rowCount,2).', '; $output .= 'val2: '.round($Val2N / $rowCount,2).', '; $output .= 'val3: '.round($Val3N...
asked by 27.04.2018 / 12:22
3
answers

How can I make the jquery run properly when loading the page?

It turns out that I have a divs filtering code, which shows me one or another element, the filtering I do with jQuery, the problem is that I want to start loading the page, do not show me all the options, if not, do not show me any and when sele...
asked by 24.05.2018 / 07:29
3
answers

Does not show by alert the selected item of a select

I have a select that I load with the data that I bring from my BD, I have a javascritp function to which I send as a parameter the element of the list that I select, but then in the function I make an alert to show what arrives but it always arr...
asked by 22.05.2018 / 15:07
2
answers

how to call several ids in a javascript code

I want to call several ids in the javascript code so I do not have to create a different code for each Show more: button <p><a href="javascript:mostrar();">Mostrar</a></p><div id="flotante"style="display:none;">...
asked by 10.10.2018 / 01:31