Questions tagged as 'javascript'

3
answers

How to get the text of a select

I have the following code where I want to select the value and text of a select, and those values send them to some inputs var $select = $("#id_maquinaria").change(function() { var x = $select.val(); document....
asked by 06.06.2018 / 21:21
1
answer

What is the difference between this and self in javascript [closed]

I have seen that within a method or a function in javascript they make the reference this with a variable self .     
asked by 05.07.2017 / 23:57
3
answers

Change datatables language

I'm using jQuery's Datatables, something very simple and it works great. I have these bookstores: <script src="js/jquery.dataTables.min.js"></script> <script src="js/dataTables.bootstrap.js"></script> <!--botones...
asked by 16.07.2017 / 22:13
2
answers

AJAX: XML read error: tag without partner. Expected: / img

I am loading ajax when testing in the browser it launches the following error:    XML read error: tag without partner. Expected: </img> Ajax code hosted in script.js $(document).ready(function () { $.ajax('otrap...
asked by 02.08.2017 / 19:53
3
answers

Show and Hide functions do not work well in Internet Explorer

I am trying to adapt a small app. web that uses some jQuery functions and I have found that it does not hide elements of the page when with another browser if it does well. jQuery(function() { // Handler for .ready() called. jQuery('.dock...
asked by 01.08.2017 / 16:53
5
answers

Message on a label p

I want to show a message on a label in a login that if the user has not entered any data that shows a message that you have not entered anything in that tag this is the code that I am using: (function () { "use strict"; var iniciar...
asked by 29.07.2017 / 21:25
1
answer

Change title by Js

Good, my goal is that when entering a text in the input, the paragraph whose id is "my title", change by the text entered in that input. Surely e is that the Js code is not right. HTML <html> <head> <script src="DH16.js">...
asked by 09.08.2017 / 10:36
4
answers

Is this in a Javascript class for builders?

Always use: function Constructor() { this.algo = algo; } But really, what use this ? I only use it because I understand that that property, when placing the 'this', will be saying that the property is for that constructor . Is...
asked by 24.05.2017 / 04:41
1
answer

How to include HTML in other HTML?

I have a menu for my website, the problem is that if I change it I will have to modify many files (around 40) I thought then include the file using JavaScript with the document.write () function but I do not know how to add it the HTML MENU.h...
asked by 16.05.2017 / 01:26
6
answers

How do I get an onclick inside append ()?

I try to make an action onclick within a append . Here is my example: $('#tr').append("<td><a onclick='nombre(a,b)'></a></td>") by clicking on the link I want to pass some parameters. I already tr...
asked by 14.06.2017 / 18:40