Questions tagged as 'javascript'

1
answer

Edit form fields in Django to modify the input object

I need to validate a form, but Foundation Abide PlugIn works by selecting the input fields that have the required tag added: <input type="text" placeholder="1234" aria-describedby="exampleHelpText" required pattern="number">...
asked by 15.02.2016 / 02:11
2
answers

how to remove an element from an array vue js

I have an array in the following way. [ "icono-5-4", "icono-7-6", "icono-8-7", "icono-9-8", "icono-1-0", "icono-2-1" ] I want to reactively remove an element: Know the name of the item until the user clicks on a button. Example, if the clie...
asked by 29.11.2018 / 21:30
2
answers

Validate Onclick event in JavaScript

I want to perform a validation on a button to clean my forms by clicking on the exit button: if (document.getElementById('btnsalirmodalf').onclick == true) { document.getElementById('asignadoa').value == ''; document.getElementById('Es...
asked by 06.12.2018 / 19:40
2
answers

How to show and hide divs and vary class crossed out?

I am working with a price table and as you can see the total price varies through the action ws-plus and ws-min , this part I have it done. Now, what I need is to work with the actuators. By default I want the "item that varies p...
asked by 09.04.2016 / 15:43
1
answer

Internal menu search

I have a menu in html with an amount x of lists that in turn have labels to, how can I implement a search engine, to show the "a" links since they are enough, and redirect me to the selected link? I have: <li class="lista"> <a hr...
asked by 05.04.2016 / 19:40
1
answer

Validate if the user is of legal age

I have an inconvenient I am doing a web app and they ask me if the user is over 18 years old can register and if no message comes out. The truth of javascript is very little. If you could help me I would really appreciate it, I leave the code of...
asked by 06.04.2016 / 03:06
2
answers

Show value $ _SESSION with JavaScript

I'm painting HTML%% of PHP and I need to handle it with JavaScript. html.php <p id="elem" value=" <?php echo $_SESSION['variable']; ?> "></p> The result of this operation is: <p id="elem" value="0"></p>...
asked by 13.04.2016 / 20:59
2
answers

Datetime Javascript to Datetime C #

I am trying to send an object by means of a POST request, however I have some problems with one of the attributes of that object (datetime). date = $("#dpkparam").val(); fecha = new Date(date.replace(/(\d{2})-(\d{2})-(\d{4})/, "$2...
asked by 13.04.2016 / 23:40
1
answer

I can not get the user's name Facebook api js

I have this code to try getting the user's name FB.api('/me', function(response) { console.log('Successful login for: ' + response.name); }); but the answer that the console gives me is:    Successful login for: undefined without...
asked by 30.06.2016 / 21:56
1
answer

Is it possible to create a table in Angular DataTables with a factory?

I'm using the famous angular-datatables plugin that combines Jquery Datatables with Angular. I just learned how to use a factory to fetch data from a JSON file. My question is: Could you use a factory on angular-datatables to use it as...
asked by 21.06.2016 / 17:45