Link to home
Start Free TrialLog in
Avatar of maccaj51
maccaj51Flag for Afghanistan

asked on

Jquery: ignore number in attribute when selecting an element

Hi Experts,

I am trying to create a generic selector ignore a number... I want to select all these fields...

<input type="number" name="Product[0][Quantity]">
<input type="number" name="Product[1][Quantity]">
<input type="number" name="Product[2][Quantity]">
<input type="number" name="Product[3][Quantity]">
<input type="number" name="Product[4][Quantity]">

This selector obviously doesnt work

$('[name="Product[][Quantity]"]').value('Please wait');

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of maccaj51

ASKER

Thanks Rainer - its was the name attribute but I amended accordingly
Hi,
oh sorry for that. And thanks for the points.

KR
Rainer