Linked Questions

324 votes
5 answers
510k views

How to get an element with its name attribute with jQuery? Is there anything (like # for id and . for class) for name in jQuery?
MSajjadi's user avatar
  • 3,831
8 votes
5 answers
21k views

We have two divs: How to select all the input field as an array with name="divText" that are inside "div2". //Body of div1 <div id="div1> <input type="text" name="divText" value="v1" /> &...
bpbhat77's user avatar
  • 529
5 votes
5 answers
15k views

Is it possible to access an form input field using just the element name? If I were attempting this with the ID, it would look like this: <input type="text" id="fname"> $("#fname").blur(...
user avatar
6 votes
3 answers
4k views

Sorry if this is too simple, I am new to programming and I stumbled upon this problem. How can I use the name attribute as the selector inside a $(document).on('click', '#thisisforid', function().. ? ...
super-user's user avatar
  • 1,067
-3 votes
5 answers
4k views

I have set of html elements and I named those for all input/select/textarea. Anyway the names are unique for each element. Now I need to get the Html TAG (Input/Select/Textarea) by Element name. ...
-1 votes
3 answers
2k views

Following is the code: <td><bean:write name="row" property="suppnr" /></td> How to get the supplier number (suppnr) value like below? var sup = document.getElementByID('suppnr')....
Padmaja's user avatar
  • 111
0 votes
1 answer
1k views

Hi what i'm trying to do is add a class to a div with specific name attribute, for example i have a div like this. <div class="box" name="box-1"></div> <div class="box" name="box-2"&...
0 votes
3 answers
563 views

I am using backbone and I have following code in template <a class="al_ynbtn apv_app" id="approveLeave" name=<%=leave_request_id%>></a> <a class="al_ynbtn can_app" id="...
3 votes
1 answer
133 views

I just wanted to know how I can run a function on a specific form name? instead of just any form.. my code is below you don't really need to know anything else, its for an ajax call. $('form').on('...
-1 votes
2 answers
157 views

Can i use name of element in javascript even ? for use id="xxx" , we use $('#xxx').prop('readonly', true); And for class="xxx" , we use $('.xxx').prop('readonly', true); I want to know can we use ...
pap mooo's user avatar
-3 votes
1 answer
70 views

I have 3 divs <div class="content" data-id="Java"><button onclick=" onclick="alert('hi')">Java</button></div> <div class="content" data-id="Php"><button onclick="...
1 vote
1 answer
53 views

I came across a function that does exactly what I need to do in my questionnaire, but it operates using an ID and I need to do it by name. here's the fiddle for it https://jsfiddle.net/HGtmR/4/ ...
Optiq's user avatar
  • 3,354
0 votes
1 answer
30 views

I have this checkbox that has ONLY type and name attributes. I cannot add className or id to it. How can I check/uncheck this checkbox using jQuery? <input type="checkbox" name="...
thewebtud's user avatar
  • 584
6 votes
2 answers
10k views

I am only setting one simple value in text area using jquery on radio button click. but it sets nothing. My Code is: Javascript --------- $("input[name=radio_workitem]").on("change",function(){ $(...
Abhishek Singh's user avatar
0 votes
5 answers
19k views

Is it possible to get on click value by input name in jQuery? I don't have neither class nor id and I want to get the on click value on name only. As I am doing all this in a software to get data. &...

15 30 50 per page
1
2 3