Linked Questions

0 votes
1 answer
2k views

im a beginner on Javascript , i have 3 button ADD TO CART each one has a value , so when i click on one of them , i keep getting the value of first button this is my HTML CODE <div class="...
clackj's user avatar
  • 13
0 votes
4 answers
2k views

I am very new to programing so sorry if this question is to vague. I have a simple html input field: input class="draft" type="text" and I have a javascript function (the function only accepts ...
Tyler7498's user avatar
-6 votes
1 answer
429 views

I have one text box and have written "ABC" in the text box, but I want to obtain the text using jQuery <input type=text value="ABC"> But when I use jQuery's .html() it returns null
M33POOH's user avatar
285 votes
7 answers
939k views

I'm currently using a YUI gadget. I also do have a Javascript function to validate the output that comes from the div that YUI draws for me: Event.on("addGadgetUrl", "click", function(){ var url ...
Ali Taha Ali Mahboub's user avatar
104 votes
12 answers
346k views

I am trying to get the text in a text box as the user types in it (jsfiddle playground): function edValueKeyPress() { var edValue = document.getElementById("edValue"); var s = edValue....
Ian Boyd's user avatar
  • 259k
0 votes
1 answer
13k views

var name = $("input[#name]").value; var email = $("input[#email]").value; var msg = $("input[#msg]").value; var nameLength = name.length; var emailLength = email.length; var msgLength = msg.length; ...
user3666951's user avatar
4 votes
2 answers
9k views

Im using jquery inputmask How can I use below code to any input text with out a mask? any letter inputted will force to uppercase. Inputmask.extendAliases({ uppercase: { mask: '' // ...
mrrsb's user avatar
  • 681
-3 votes
6 answers
6k views

I am trying to use javascript to have a link created on page load and then when that link is clicked to insert content into a div. This is where I'm at so far... <div class="inside"> </div&...
fightstarr20's user avatar
  • 12.9k
-5 votes
3 answers
3k views

the problem is more complicated with loops, but all I need is how to get value of: input id="product_addons_0_selections_2_id" by accessing div with Id product_addons_0_selections_template2 as ex: &...
Fi3n1k's user avatar
  • 901
2 votes
3 answers
2k views

I have this function: function msj(str) { // display = document.getElementById("txt"); // DOM // nodo = document.createTextNode(str); // display.replaceChild(nodo,display.firstChild); $("#...
user2421425's user avatar
0 votes
2 answers
2k views

Pixels <input type="text" name="mytext[]" id="Pixels" value="Text 1"></input> <br /> Percentage <input type="text" name="mytext[]" id="Percentage" value="Text 1"></...
user avatar
0 votes
3 answers
3k views

Good day, I just want to know how do you print out the value you entered on the text field via alert box, I'm new to jquery and I don't have any idea what am I doing. Any help would be appreciated. ...
user3396187's user avatar
0 votes
4 answers
3k views

I know this is a commonly posted question so I apologize, but I've tried javascript, jQUERY, parts of this,several versions from previous work that DO work, .value, .textContent, .innerHTML, ...
GR Miller's user avatar
0 votes
4 answers
2k views

I have a form which adds a row of text inputs dynamically if a user wants to add a new row, it automatically populates a new row with an input field with the same id and class as the previous ones. My ...
Benjamin Mwendwa Munyoki's user avatar
0 votes
3 answers
2k views

For my javascript code I tried the 2 alternative solutions in Get the value in an input text box, answer 2 from RJD22, pls see code below. Option A works fine, but option B doesnt; the console shows '...
Joppo's user avatar
  • 739

15 30 50 per page