Questions tagged as 'javascript'

1
answer

remove titles by filtering results

I have a filter of results but I need that when writing in the search box the titles disappear; just like what the code does next: $(document).ready(function () { (function ($) { $('#buscar').keyup(function () {...
asked by 01.07.2018 / 16:42
1
answer

validate with jquery.validate a form with dynamic elements divided into tabs

The problem I have is the following: In twig from the form-wizard of the metronic template I dynamically create both the tabs and the elements within them. This first part goes well, the problem is in the validation. All the fields are obliga...
asked by 26.05.2016 / 19:28
2
answers

Modify attributes of HTML elements dynamically created with JavaScript

On my website I make a request to the server PHP with AJAX , and I bring some links already created in PHP . All right up to here, but the problem is that I want to change these links to href with JavaScipt , but...
asked by 08.08.2018 / 22:37
2
answers

@Viewchild Angular 5, 6 - ElementRef

I am referencing a control using ElementRef and for this I use the following: @ViewChild('btnGuardarDatosGenerales') btnGuardarDatosGenerales: ElementRef; I need the reference to be able to reach your click () event, with javascript I can...
asked by 08.08.2018 / 19:37
2
answers

Regular expression to remove comments JS, HTML and CSS

I need a regular expression that works to remove comments from HTML, JS and CSS. The biggest problem I find is in the line comments. As in the project where I work there is a lot of JS to fire in HTML, if I try to detect // until end of line,...
asked by 08.08.2018 / 09:56
2
answers

Get the value of an input button

I have dynamically created buttons, and I wish that when you click on them you get your value to be able to interact with it. @for (int i = 0; i < pagesMax; i++) { <input type="button" value=@(i+1) class="bottom" id="id" />...
asked by 25.06.2018 / 19:30
0
answers

iterate over a connection to mysql and execute a query

I find the following problem .. I generate a connection to mysql through the following package , where I have two tables: 'rto' and 'vta ' And based on that build an INNER JOIN where I show what is required, now I need to execute that query...
asked by 13.06.2018 / 15:06
0
answers

Problem with the ng-include

I was watching videos to learn the angularjs for web pages, I found a problem with the ng-include , I do not know if the way or the video is old, my code is: Index.html : <div ng-include="menuSuperior"></div> app.js :...
asked by 25.06.2018 / 15:55
0
answers

Capture data from an html table with jquery and send it to a servlet

Dear, please request your support to solve a problem. I'm working on an application and I need to see how to capture the data from an html table with records that comes from another table with records but I can not do it since both tables are in...
asked by 11.07.2018 / 14:04
2
answers

How can I count the values of a json array and list them with html?

I have the following json "files", I'm only interested in counting the typedescrip to make a list with them to know how many types I have I'm using angular to build my functions suggestions are accepted { "archivos": [ {...
asked by 12.07.2018 / 16:00