Questions tagged as 'javascript'

2
answers

How can I leave a bootstrap datepicker functional but readonly

I have an input defined as follows: <input type="text" name="fecha" id="datepicker" pattern="[_0-9]{2}/[_0-9]{2}/[_0-9]{4}" class="form-control" required> With the following script on the same page <script> $('#datepicker').da...
asked by 29.06.2016 / 15:05
2
answers

Show required message in an input="select"

I have a form with the following structure: <input type="text" required="" /> <select required="required"> <option disabled="disabled" selected="selected">Selecciona un ID...</option> </select> <input type="t...
asked by 13.09.2016 / 20:13
1
answer

Problem UPDATE with AJAX

I want to update the data of a form using AJAX (jQuery 1.10.2) and the answer goes through the error. HTML <form name="formulario"> <p id="identificador">9</p> <input id="opcion-1" type="radio" name="opcion" value...
asked by 05.05.2016 / 17:10
3
answers

Get id dynamically to hide and show items

How can I get list ids dynamically, for example .. <li> <a href="#">lista1</a> </li> <li> <a href="#" onclick="ocultar;">lista2</a> </li> <li> <a href="#">lista3</a> </...
asked by 09.05.2016 / 21:35
3
answers

Access several input with Jquery

I have this code to add a class hidden to a paragraph But I have 3 input's and doing the same for each input is a bit uncomfortable, I tried to do it with each , but I was not successful. The Inputs are the following:...
asked by 29.01.2018 / 15:01
1
answer

uncheck checkbox by selecting another

I have a group of checkbox , of which you can mark any of these, however now I need two of them to only allow me to mark one .. <div class="checkbox"> <label> <input type="checkbox" name="permisos" value="1"...
asked by 13.12.2017 / 00:26
1
answer

Copy files and directories with gulp.js

I am using the gulp.js task manager in my AngularJS and Django project. Due to the configuration of my git repository, the static directory, called assets is not controlled, so I have a directory, sources , where the source fil...
asked by 09.02.2016 / 03:08
2
answers

Javascript FileReader

I have the following code: <input type="file" id="files" name="files[]" multiple /> <output id="list"></output> <script> function handleFileSelect(evt) { var files = evt.target.files; // FileList object //...
asked by 25.02.2016 / 21:16
1
answer

immutable div within a div content-editable

Approach I would like to make a div that would be totally unmodifiable , preferably, inseleccionable and unfocusable even if it is within an element that have the contentEditable attribute enabled. Note: I can not choose...
asked by 18.02.2016 / 19:59
2
answers

Advantages of organizing dependencies using Node.js / npm

I would like to know what the advantages and disadvantages are (if they are clear), to use Node.js to download the modules, dependencies or packages , from the libraries and frameworks what we will use to develop. To solve my doubts I have a...
asked by 14.02.2016 / 00:37