Questions tagged [name-attribute]

39 questions
0
votes
2 answers

$.append before changing $.prop('name')? (name attribute not showing in Chrome "Elements")

I'm dynamically constructing elements for recurring html. I'm creating a display:table, and all seems to be going well, but when I change the name of an element before it's been $.append()ed, it doesn't show up in Chrome "Elements" and cannot be…
user1382306
0
votes
1 answer

Getting name of button on postback

I have built a 'buy products' page dynamically by building it up for each product. Each product has an 'Add to Basket' button, which are differentiated for each product by having the pID as the buttons name attribute. I now want to get the value of…
litterbugkid
  • 3,534
  • 7
  • 36
  • 54
0
votes
1 answer

HTML/PHP: How to create multiple radio buttons for each row in a table?

I have an HTML table having n rows. Each row has a name and 3 radio buttons. What I want to do is, each row must have a selected radio button. However, when I choose a radio button in the first row and I choose another radio button in the second…
donna.paulsen
  • 61
  • 5
  • 14
0
votes
2 answers

What is the name attribute for, and when should it be used? (not referring to form fields)

I realize that it is used to designate the names of form fields when it comes time for submission to a server. But what about in the context of frames and forms' @targets? Can someone give an explanation of what the deal is with the following…
wwaawaw
  • 6,867
  • 9
  • 32
  • 42
0
votes
4 answers

PHP submitting form with a variable amount of fields with variable names, check if at least one set

Okay so my title might be a little confusing, but let me explain my situation: I have a pretty big form with lots of fields, some which are required, some which are not. I do validation with JS, but then I'm also doing validation on the server side…
user1513171
  • 1,912
  • 6
  • 32
  • 54
0
votes
0 answers

how do I change the name attribute of a form in ie 7?

Sometimes when I work with third party scripts, I have to do things like change the name of a form in order to get their code to work properly. This works perfectly in all browsers except in IE 7. After googling and searching stackoverflow, I have…
-1
votes
1 answer

How to target a class based on the elements name

How do I target a class based on its name: $("[name="addtocart]").removeClass('addtocart-button'); This is what I thought how to do it, but…
user2513528
  • 171
  • 1
  • 2
  • 12
-1
votes
1 answer

The namE attribute is not supported in this context

While i open .EDMX in Visual Studio 2012 means when i click on it, it gives me error like: The namE attribute is not supported in this context. and the same error i get in other application/projects also, this happen only with edmx file not other…
Mahavirsinh Padhiyar
  • 1,299
  • 11
  • 33
-1
votes
1 answer

length of array used for html input element's name attribute

This bit of code below appends a div to another div. The former div contains an input element with the name attribute "inputName[]". I'm guessing this is an array that auto-increments as more divs are added. How can I output the length of this…
thanks_in_advance
  • 2,603
  • 6
  • 28
  • 44
1 2
3