Questions tagged as 'javascript'

3
answers

Jquery remove an unspecified class from an element or delete all classes except for some

I have an HTML element select # options that when selecting one of the options it will dynamically add classes to the div # container element, but I need to delete the class that was previously added to this element and then add the new clas...
asked by 26.09.2017 / 21:12
2
answers

Access a data inside a json object (no array)

I'm working with angularjs, I have a query to bring me a user by document number, I return a json with the data, what I need is to access the data idUsuario of that json object to inject it elsewhere, to give a console.log in the variable to whi...
asked by 28.08.2017 / 19:04
2
answers

duScroll does not work correctly AngularJS

I'm using a tool that offers us an angle that is Angular-scroll where I have a function that executes a scroll up, but I have not tried to get it, please some solution? <script src="https://ajax.googleapis.com/ajax/libs/angular...
asked by 26.09.2017 / 13:05
2
answers

How can I manage subindices in the messages I want to print to the user in javascript

Good afternoon, I have a doubt, in JavaScript code if I want to print to the user a message that says square meters but that "squares" in a superindice of the letter m, is it possible? This is the example of how it should look: Than...
asked by 27.09.2017 / 22:59
1
answer

execCommand with several contenteditable divs

I have a page with 3 div in contenteditable: <div class="herra"> <div title="Negreta"><b style="font-size: 2em;">N</b></div <div title="Cursiva"><i style="font-size: 2em;">K</i></div...
asked by 01.09.2017 / 11:26
1
answer

Select dependent PHP and MySQL

Greetings, I am creating a web application to register job vacancies using PHP, MySQL and a bit of Javascript. My problem is that I want to filter by educational level so that all records do not appear. I thought to use a switch inside PHP but i...
asked by 04.09.2017 / 18:21
1
answer

Given a date (dd-mm-yyyy), get Monday of that week. In number [duplicate]

I am trying to create a function with datapikcer information but I can not find a way to do it. Given a date, for example: (01-09-2017), know what is Monday of this week? In this case I would have to return (08-28-2017). (That would be a speci...
asked by 01.09.2017 / 16:44
1
answer

InnerHtml is skipped required

When input type="text" is added because you have selected a number of siblings > 0 the InnerHtml adds these input, but sends me to hello.html and should not because the input is required. <!Doctype html> <html> <head> <...
asked by 08.10.2017 / 10:49
2
answers

Hide column in JTable JQuery

I use the Jquery JTable table, and I want to know how the column is hidden: Table: $('#miTabla').jtable({ title : 'Datos Detalle', paging : true, pageSize : 10, pageList : 'minimal', saveUserPreferences : true, jquer...
asked by 03.08.2017 / 12:59
1
answer

Change color to a word

I have a table made with HTML and JavaScript . var ths = document.getElementsByTagName("th"); var tds = document.getElementsByTagName("td"); for (var i = 0; i < ths.length; i++) { ths[i].style.color = "red"; }...
asked by 25.07.2017 / 18:35