Linked Questions
44 questions linked to/from Get the value in an input text box
0 votes
1 answer
2k views
How to get a current value from input JS/jQuery [duplicate]
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="...
0 votes
4 answers
2k views
How to put a string from an input field and put it into a function [duplicate]
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 ...
-6 votes
1 answer
429 views
Can I save the value of a textbox? [duplicate]
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
285 votes
7 answers
939k views
Set Value of Input Using Javascript Function
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 ...
104 votes
12 answers
346k views
How to get text of an input text box during onKeyPress?
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....
0 votes
1 answer
13k views
JS: "TypeError: 'undefined' is not an object"
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; ...
4 votes
2 answers
9k views
Jquery inputmask casing uppercase/lowercase
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: '' // ...
-3 votes
6 answers
6k views
jQuery add text to input on click
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&...
-5 votes
3 answers
3k views
jquery get input value from Div
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: &...
2 votes
3 answers
2k views
JQuery html string input box
I have this function: function msj(str) { // display = document.getElementById("txt"); // DOM // nodo = document.createTextNode(str); // display.replaceChild(nodo,display.firstChild); $("#...
0 votes
2 answers
2k views
JQuery: How can I Make Two Text Inputs Effect Each Other?
Pixels <input type="text" name="mytext[]" id="Pixels" value="Text 1"></input> <br /> Percentage <input type="text" name="mytext[]" id="Percentage" value="Text 1"></...
0 votes
3 answers
3k views
Display value of input onto alert box using jquery
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. ...
0 votes
4 answers
3k views
Getting text from input form returns empty string, but console.log shows displays text
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, ...
0 votes
4 answers
2k views
jQuery get value of inner text input
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 ...
0 votes
3 answers
2k views
get value from textbox does not work
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 '...