Questions tagged as 'javascript'

1
answer

Show quantity of items and search input in Datatable AdminLTE?

I am developing an application in Laravel 5.6 and implement AdminLTE , everything works correctly and implements the corresponding files of both js, css and the sample structure of the html. But my result is the following: This is my:...
asked by 13.03.2018 / 19:04
1
answer

How to create a textArea html5 that indicates the number of rows?

I'm starting with html5 and javascript and I would like to know how to place the row numbers in a textArea, as shown in the image, also if I can do the same but for the columns. Or if there is a special component for this.     
asked by 26.08.2018 / 10:10
2
answers

How to send emails from codeigniter with phpmailer? [closed]

Hello good morning you will see I am very new in this and recently I was entrusted with the task of sending emails. I have to create a form that allows me to take errands and then another that is to send notifications of the raids and I did it a...
asked by 14.03.2018 / 19:32
1
answer

Is it possible to declare local variables within a lambda?

I have a lambda function (arrow or anonymous function) in JavaScript , which declares a variable, but the problem is that it declares it as a global variable, and I I would like it to be local (only accessible within lambda). (x=>(...
asked by 21.03.2018 / 03:32
2
answers

Get selected option within an optgroup

Having a select like this: <select id="main"> <optgroup label="Coches"> <option value="Mustang">Mustang</option> <option value="Ford">Ford</option> </optgroup> <optgroup label="...
asked by 20.03.2018 / 13:06
2
answers

Help with JavaScript exercise

I need help with the following exercise: It is an exercise using JS in the browser console, I have 3 cards, I have to create a function and add them with the following condition, if the card is a 1 value of 20 and if it is a red card it is worth...
asked by 07.08.2018 / 15:10
2
answers

It does not show the alert message, but it does not give me an error either

<?php include_once 'header.php' ?> <script> function submitForm(){ var nick = $("input#nick").val(); var pwd = $("input#pwd").val(); var data = {nick: 'nick', password: 'pwd'} $.ajax ({ typ...
asked by 17.08.2018 / 18:03
1
answer

Control of schedules with moment js

In my timetable control code, I check if the current time is within the range of opening time and closing time. This is my code: var ha = moment("00:00:00", 'H:mm:ss'); var hc = moment("23:59:00", 'H:mm:ss'); var hactual = moment("00:00:00...
asked by 07.08.2018 / 06:31
1
answer

Convert Object to work with the Angular2

I'm working with Angular two with the following JSON: { "var_TempExt": [ { "attrName": "var_TempExt", "attrValue": "8", "recvTime": "2018-02-02T13:57:45.000Z" }, { "at...
asked by 02.02.2018 / 15:04
2
answers

Why does not the value that I send from the controller to the javascript of the view arrive?

I work ASP.NET MVC, Visual Studio 2015, the problem that is happening to me is that when I register a new record it sends me a json, it is more redirecting me showing me the json since my method is a JsonResul, then it does not It's nothing abno...
asked by 19.12.2017 / 23:50