Questions tagged as 'javascript'

3
answers

Assign a value to an ASP Text Box using JavaScript

This is my function JavaScript : function prueba() { var a = 1; var b = 2; var total = a + b; ('#TextBox1').val(total); } This is the .aspx : <div> <asp:TextBox ID="TextBox1" runat="server"...
asked by 13.06.2017 / 17:58
3
answers

Error showing cycle for

Why do not you show me anything? window.addEventListener("load", function() { var matriz = new Array(50); matriz.forEach(function(i) { document.getElementById("forEach").innerHTML += i + '\t'; }); }); b...
asked by 12.06.2017 / 17:57
3
answers

Send variable to a modal

How about, I'm trying to send an index.php variable to a modal without reloading the page at all, since some forms are previously filled in, then I can not just send by get and reload the page (which would be very easy) var fech = $('#input')....
asked by 09.06.2017 / 17:38
1
answer

Get random url of feeds

Hello it turns out that I have the doubt of how to get the url of any post published using the feeds I have the following code but it does not give the result I need. <script type='text/javascript'> //<![CDATA[ var post = src='/fe...
asked by 17.08.2017 / 00:59
3
answers

Remove label style from several label that are inside a div (JQuery)

As the title says, I want to remove the style tag from the following code by JQuery . Code: <div id="action_ligne" class="action_ligne"> <label class="lbl obligatorio checked" style="color: red;">Code postal<...
asked by 18.08.2017 / 19:41
1
answer

Pass several data to modal

I am trying to send several variables to a modal but the question is that it only sends me 2 out of 5 variables (variable 1 and 5). Could someone throw a cable? Thank you very much With this I call the modal <a data-toggle="modal" data-i...
asked by 17.08.2017 / 09:08
1
answer

How to add a formatter to a bootstrap-table and Angular 4?

How to add a formatter to a bootstrap-table? Greetings community, I have the following problem I am using the bootstrap-table library in a project developed with Angular 4, I try to add a function to the data-formatter but it only shows me th...
asked by 16.08.2017 / 22:51
1
answer

Problem with several Javascript timers

I'm trying to create a website that contains a section with many timers to measure the time it takes for certain tasks. The problem I have when I interact with two timers at the same time, when you have several counters working and you try to st...
asked by 17.08.2017 / 09:24
2
answers

Capture the value of an Input Text that is inside a Row of a Table, by pressing a Checkbox with jQuery

I have this table, as seen in the capture , where the data is dynamically added to the search engine with jQuery . I need to get the value of% co_of% Amount , when the% co_of% of the Discount is activated. In each row...
asked by 21.06.2017 / 17:08
2
answers

Error: $ .getJson is not a function at HTMLDocument

I have a .json file { "post 1"[ { "folio":"1", "img":"imagen", "titulo":"bla bla bla", "descripcion":"nananana" } ] "post 2"[...
asked by 19.06.2017 / 16:38