A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Dynamically assign ID to hyperlink
Joined: Nov 16, 2004
Jul 08, 2009 10:38:09
I run jQuery and return a set of values. I want to use one of these values as the ID of a hyperlink created after the jQuery call runs.
my returned value is wResults.iNumber
'<A href="#" id=wResults.iNumber onclick="accessEditForm(this.id)">Edit</A>'
How can I get the hyperlink to read the value of the wResults.recseq variable?
Joined: Nov 08, 2001
Jul 08, 2009 12:20:11
Set the attribute?
I am not sure what youa re doing, maybe some more code would shed more light on your question.
Author and ninkuma
Joined: Jan 10, 2002
Jul 08, 2009 12:36:30
I have no idea what you are asking. What's
and what does it mean to "read" it?
And, you are using jQuery, yet have
attributes in your HTML?
Asking smart questions
Books by Bear
subject: Dynamically assign ID to hyperlink
How to change the value of Hyperlink
Question on how to fix error on inputHidden field
Reset range slider values
passing value by hyperlink
Session variables are getting hosed!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015