Code Forum » JavaScript
961 FOLLOWERS
Code Forum is providing a community where developers can learn, share and build their developer toolkit. This section of the Code Forum is a place to discuss any need for support with JavaScript, AJAX, and other related languages, learn Canva drawing Javascript on elementor, and find javascript tricks, tutorials, & guides.
Code Forum » JavaScript
4d ago
Hi, I've got a button for adding rows (select option value and Input) to a html-JavaScript table, When I select an element from the select option value (idmedico) I use onchange option in the select for going to a JavaScript function for fetching the name for the idmedico and the populate the input (id="nombre_'+cont+'"). Because I can add several rows in html-JavaScript table then I will have: idmedico[0] -- id="nombre_0" idmedico[1] -- id="nombre_1"etc.
This is my JavaScript code for...
Read more ..read more
Code Forum » JavaScript
1w ago
Hello!
I am trying to learn JavaScript, specifically within the context of web development (nothing surprising about that!).
But I wanted to know if there are any tutorials I can find either online or in books in which each aspect of the code is explained exhaustively, especially with, for example, aspects of the code circled with arrows pointing to each component and explaining each of them in concrete examples. To be clear, I'm specifically interested in how JavaScript interacts with...
Read more ..read more
Code Forum » JavaScript
1w ago
Hello,
begining JS problem
i know little at this point
when i run my code on output i get A TON of confusing data
i am pretty sure it was fine in the last few days when i use console.log
plese see the image on the right
i am after the console running my code... and thats it
never mind the code itelf.. still learning
of note, months ago i installed node but un-intsalled it... same problem
help me , please ..read more
Code Forum » JavaScript
1w ago
I need help, I am using Javascript code to detect Radios, TextInputs and Text Area fields and push the detetcted values from field to a sequence in a input field. I've given each field a id with sequence, name1, name2, name3, name4, name5, name6, name7, name8, name8, name10, and name11 and the field id where string is pushied is sc_tgenerator_form_field_prompt_text. I have some code, and wondering if its possible to adjust the sequence of final string that is pushed in...
Read more ..read more
Code Forum » JavaScript
2w ago
hello, in javascript i need wait to table load all data content, my approach is whit "initComplete" but table is not loading.
here is my example code:
Code:Copy to clipboard
<script>
var myArray = [~alldata~]
initComplete: buildTable(myArray)
function buildTable(data){
var table = document.getElementById('table')
for (var i = 0; i < data.length; i++){
var row = `<tr>
<td>type</td>
<td>${data[i].id}</td>...
Read more ..read more
Code Forum » JavaScript
2w ago
I have a page in a WordPress site that opens into an IFrame to accommodate a music player I wrote years ago. It all works fine excerpt when trying to close the window. .The anchor or onclick is inside the iframe, so the new window (front page) opens in the same iframe that held the music player and the URL is still the radio page. I need the "dashradio" window to close and the front page to reopen
Here's the line:
HTML:Copy to clipboard
<a id="btn6" title="Close DashRadio"...
Read more ..read more
Code Forum » JavaScript
3w ago
Does anyone on here know what I am referring to?
https://jsfiddle.net/xmdq14a2/1/ 1
To reproduce, tap one of the buttons on via a mobile device.
I think it may be this?
:active
How would I disable it from occurring when tapping a button?
What would I put inside here?
CSS:Copy to clipboard
button:active{
}
or, maybe that is not it.
It was something I noticed and was wondering why it was there, and can it be removed ..read more
Code Forum » JavaScript
3w ago
I am needing help figuring out how to fix 6 jlsint warnings in the code.
Code: Edit fiddle - JSFiddle - Code Playground
JavaScript:Copy to clipboard
const button = document.createElement("button");
button.className = station.buttonClass;
button.textContent = station.title;
button.classList.add("linkButton", "btnC-primary", "btnC");
button.setAttribute("data-destination", "#lb"); // Added this line
buttonContainer.appendChild(button);
...
Read more ..read more