Questions tagged as 'jquery'

1
answer

Change state a select to disabled

I have this design When I give the button assign it saves me the information in a table of sql and I need the select to be disabled and although I update the page always remain disabled . this is the jade table(...
asked by 24.07.2017 / 00:11
3
answers

Validate image by JavaScript

I want to validate the image through JavaScript where I want to validate the type of image (png, jpg, etc) and that the size is not greater than the one established. At the moment I've done this: document.querySelector("#imagen").addEventLi...
asked by 20.08.2017 / 16:38
1
answer

Stop form submit then shoot from modal

I have a form that by clicking to send I show a modal to confirm, I could do the same with an alert but for reasons of aesthetics I show a modal that has a button, that button confirms the sending of the form I would like the modal button to...
asked by 22.08.2017 / 13:34
1
answer

Error with bootstrap-table

I try to give the Bootstrap-table style to a table, but I mark the following error and I do not know why, if in other tables it works: Uncaught TypeError: Cannot read property 'field' of undefined at HTMLTableCellElement.<anonymous>...
asked by 21.08.2017 / 22:57
1
answer

Datetimepicker does not show default date value

I need to show the default date in all the fields, but when adding the option of the minDate: new Date () plugins the dates in the fields are not shown, but if the value is internally in the field. Example: Code: $(func...
asked by 22.08.2017 / 16:35
1
answer

Collect the data of a Foreach in PHP with JavaScript

First I generate a table with foreach in php to show the data of my students. <div class="col col-md-12"> <h2>Alumnos de 1º ESO</h2> <table class="table table-striped" id="table_alumnos"> <thead> <tr&...
asked by 23.08.2017 / 08:00
2
answers

Bring item of selected select and model value

I have this table in html <button type="button" class="assign" id="assign">assign</button> <table id="example-table" class="table table-striped table-hover table-condensed"> <tr> &...
asked by 14.07.2017 / 03:19
1
answer

MySql PHP query id varchar does it as a numeric

I have a MySql database, a student id is a varchar of 11, numbers are stored in this field but can start in zeros. for example 00000321. but it can also store 000321, but when consulting through jquery to PHP with id 0321 without the leading zer...
asked by 05.07.2017 / 06:23
1
answer

Insert array in a table from ajax [closed]

I have the following Ajax $(function() { //function ajax $('#example-table #btn-analisisInterno').click(function(e) { e.preventDefault(); var elemento = $(this); var idArt = elemento.parent().parent().fin...
asked by 30.06.2017 / 13:47
4
answers

rescue value of a checkbox created dynamically on the page

I have a page that has a series of checkbox controls, created dynamically in a ajax call with the following function: function fnObtieneRecetaPaciente(PacienteId) { var parametrosAjax = { "PacienteId": PacienteId...
asked by 30.06.2017 / 00:36