Questions tagged as 'html'

1
answer

how can I filter the data I show via the ajax request?

I want to filter the data that returns the AJAX request to get only those that start with the letters vmi . $('#datatable').DataTable({ 'dom': 'Bfrtip', 'buttons': [{ extend: 'excelHtml5', className: 'btn btn-primary', e...
asked by 07.05.2018 / 19:18
1
answer

Do not load data

I am populating <table> with ajax, but it does not load anything, nor does it make an error, I tried with an alert the Ajax responses and they are not empty, no parameter is null; <div id="tb" style="overflow-x: auto;padding-ri...
asked by 21.04.2018 / 19:48
2
answers

How to validate that there are no combobox selected

Hello my question is that in what way can I validate that for the case that there is no combobox selected, throw an error. Normally it is the other way around with the validations, where it is asked that there be at least one or several combo...
asked by 20.04.2018 / 21:44
2
answers

How to delete data from a vue array and a table in html?

I have an arrangement defined in vue productos:[] I add elements with this function: (vue code) var appmeta = new Vue({ // el: '#v_meta', created: function(){ this.getMetas(); }, data:...
asked by 10.04.2018 / 17:54
2
answers

Change the contents of a div and activate or deactivate it

I have a div in HTML with a select and I want to call a function in JavaScript the content of this div change, after doing Several things in my JavaScript code. I want this select to disappear and a table appear...
asked by 27.04.2018 / 18:47
1
answer

remove an element from the DOM and do not load it again when refreshing the page

I am removing a div with remove() , but I need to delete it completely, I explain to delete it with remove it removes it but if I update the browser or refresh the page it shows again I need to delete it and no longer load if the page is r...
asked by 04.04.2018 / 16:55
1
answer

Validate checkbox from positive to negative in table

I want to place 0 or 1 if the checkbox of the row is selected, it works fine when passing the 1 but that is when it is checked, otherwise it does not work to pass it zero, not putting $(fila).closest('tr').find('.inputvalor').val("0"); wi...
asked by 24.04.2018 / 01:10
2
answers

how can i pass json to html

Hello, I'm starting in the world of vuejs I'm consuming a detail field where I have HTML code: <p>alhdlkfjaldkfkaldjflkasdfkladsf</p> <p>asdfaslfdjaslñfjalñsdfjlkñasjfdklajsdfasf</p> <p>adsfadsf</p> How d...
asked by 03.03.2018 / 06:20
3
answers

How to create an html element with javaScript?

I want to create a dynamic table to which I enter some values, but when creating the rows in the table the button does not generate anything. var div = document.getElementById("divTabla"); function crearTabla() { var nombre = docum...
asked by 06.03.2018 / 13:50
1
answer

How can I enter the data of a query from a database in mysql in a jump menu?

if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { <select id="nom" name="nom"> <option value="1"> .$row['nombre']. </option> </select> }
asked by 05.03.2018 / 02:52