Questions tagged as 'javascript'

2
answers

how to add an id to an element created by means of a createElement ("tag");

I want to create a list, to which new elements are added by means of a input (that I already did). But now, I want to delete those elements when I click on them, the thing is that I do not know how to select them, since they do not have a...
asked by 10.09.2018 / 20:14
1
answer

Operator ~ NOT in JavaScritp (basic usage examples)

How to understand with simple usage examples the BItwise NOT operator? understand it as if you would like to know someone who is learning about bit by bit operators in Javascript Thank you!     
asked by 14.09.2018 / 02:20
2
answers

Convert String to fix

I have a String like the following: var sArray="[0, [6, 2], null, 7, 1]"; However, I want to convert them to a fix type, because when I do it in the following way: for (var i = 0; i < arr.length; i+=1) { console.log(arr[i]); } I...
asked by 10.11.2018 / 01:54
1
answer

How can I show a selected date on a div?

Good, I have this in my javascript $('.fe_registro').on('click',function(){ var res = $('.fe_registro').val(); document.getElementById('resultado').innerHTML = res; console.log(res); }); <script src="https:/...
asked by 13.11.2018 / 17:36
2
answers

How to change an html property depending on the value of a profile collected from java class

I have a text box in which I would like to be able to write or not depending on the profile that the application uses. This text box is in html code inside a .jsp and the verification of this profile is done in its action. How could I do it so t...
asked by 01.09.2016 / 09:19
3
answers

Hide and Show div with Google Map

I have a div on my ASP.NET page that contains a Google Map, and I need to show it and hide it but it does not work for me. This is the code divided by lengaujes : Javascript: function ShowMap() { var mapa = document.getElemen...
asked by 08.09.2016 / 21:30
2
answers

Copy value to an input that is inside a footer of a datatable

I am using the jQuery DataTables and I am encountering the following problem: when I click on a button I need to pass a value with jQuery to the input that has the id "tipo_venta2" of the datatable's footer, but it does not work for me, I would...
asked by 09.09.2016 / 02:39
1
answer

Problem in function

Good afternoon GRAN community. I have a problem in a function that goes to 90%. The problem is in the BeforeSend of the code, when I delete an item from the cart, a spinner is activated, but it is activated in all the elements, and I want it to...
asked by 26.09.2018 / 20:21
1
answer

create 5 elements dynamically

Actually I can create the 5 elements dynamically and delete them, but my problem is to generate them I put an id that is div1, div2, div3, div4 and div5, when I create the 5 elements and for example I delete the div3 and I recreate one so I left...
asked by 24.09.2018 / 22:27
1
answer

Select all checkboxes but with a condition

I have the following code where I select all the checkboxes in a table. Here is my table <div class="table-responsive row"> <table id="TablaCargaOP" class="table table-bordered "> <thead> <tr class="bg...
asked by 26.09.2018 / 20:22