Questions tagged as 'javascript'

1
answer

Dates in JavaScript [closed]

I have to print every year that January 1 falls on Sunday from the current year to 2080. How could it be done? Example: In these years on January 1 is Sunday: 2020,2025,2030 ...     
asked by 29.10.2018 / 15:27
1
answer

bootstrap-datetimepicker error date format, Asp Mvc

I have in one view an inputbox on which I am using bootstrap-datetimepicker to capture the date, this DTP has the format 'YYYY / MM / DD': <script type="text/javascript"> $(function () { $('#datetimepicker1').date...
asked by 10.06.2016 / 21:53
2
answers

How to hide several divs and display them after selecting it

I have the following code, it is divided into two columns on the left side are the links of records and on the right side the respective form to each record. My question is as follows, how can you hide all the forms and show one when you clic...
asked by 01.09.2016 / 18:21
2
answers

Delete a record showing confirmation

What kind of friends do I have this function in jQuery that deletes a record from a dataTable, what I need is that a confirmation be shown when I click on the delete button in the table, so that it appears if you really want to delete it and ano...
asked by 06.09.2018 / 00:47
1
answer

can the rows or columns of a table be added?

I want to add the columns of a table <table id="ejemplo" border="1"> <thead> <tr class="encabezado"> <th>Campo 1</th> <th>Campo 2</th> </tr>...
asked by 06.09.2018 / 21:32
3
answers

variable is not defined in JS

I have a dynamic input that I draw with for (var j = 0; j < valorCantidad; j++) { contador = contador + 1; jQuery('#tblTabla1 tr:last').after('<tr>' + '<td align="center" class="valorId">' + contador + '</td&g...
asked by 06.07.2016 / 22:33
1
answer

Print a DIV keeping the CSS

I try to print a "div" in which there is a "proof of an order, I can not keep the CSS styles when I open the print window. This is my function: function printDiv(divVer) { var printContents = document.getElementById(divVer).innerHTM...
asked by 30.08.2018 / 08:32
1
answer

Heatmap in Javascript or Jquery

I am looking for a plugin or some code, in which I have an array with prices, and paint a table with a color from green to red, depending on the cheapest and most expensive prices. The colors would not be degraded in the table, but would depend...
asked by 28.09.2018 / 06:58
2
answers

Apply background-color to Input with hexadecimal number stored in database

I comment, in my DB I have a table Categorias which contains, CategoriaID , CategoriaDescription and CategoriaColor , my question is, when displaying the different categories in example inputs <input type="button"...
asked by 07.08.2018 / 17:28
3
answers

Enable an input with a checkbox

please help me with this problem I want that when I select checkbox the input is activated, I want to do it with readonly because with disabled it does not save me in BD , with disabled if it works but wi...
asked by 17.08.2018 / 15:15