Link to home
Start Free TrialLog in
Avatar of Seven price
Seven priceFlag for United States of America

asked on

add alt attribute value to textbox

http://jsfiddle.net/sevensnake/M5XET/

I need to add a alt tag attribute added to textbox with the ID Value from JSON  (( Example ID":34))
 <input type="text" name="3" id="hold1" autocomplete="off" Value="9000.0000" alt="34">   to the input text box.
see example
Avatar of Randy Poole
Randy Poole
Flag of United States of America image

$('#mybox').attr('alt', 'Your text');

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland 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
SOLUTION
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
You don't need to 'parse' it
If you do not parse it,  result.d is just going to be a string not an object or array.  Not sure how you would issue a foreach loop on a string.
Avatar of Seven price

ASKER

tks