Linked Questions
40 questions linked to/from How can I select an element by name with jQuery?
324
votes
5
answers
510k
views
How do I select an element with its name attribute in jQuery? [duplicate]
How to get an element with its name attribute with jQuery?
Is there anything (like # for id and . for class) for name in jQuery?
8
votes
5
answers
21k
views
How to select all elements with same name inside some specific div using jQuery [duplicate]
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" />
&...
5
votes
5
answers
15k
views
jquery - access form input field by Name [duplicate]
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
user1098063
6
votes
3
answers
4k
views
jQuery: $(document).on(event, name as selector, function [duplicate]
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().. ?
...
-3
votes
5
answers
4k
views
Need to get TAG name by element name using Jquery [duplicate]
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
How to get a element by its property using jquery? [duplicate]
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')....
0
votes
1
answer
1k
views
addClass to a div with specific attribute [duplicate]
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
hide elements with name using jquery [duplicate]
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
Running ajax call on specific form name [duplicate]
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? [duplicate]
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 ...
-3
votes
1
answer
70
views
how to get a specific div with a specific data-id in jQuery [duplicate]
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
Can this function be done with names rather than IDs? [duplicate]
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/
...
0
votes
1
answer
30
views
Check a checkbox (having just type and name) using jQuery [duplicate]
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="...
6
votes
2
answers
10k
views
Unable to set TextArea value using Jquery
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(){
$(...
0
votes
5
answers
19k
views
Is it possible to get onclick value by input name in jQuery
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.
&...