This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help with eval function.

 
Sandeep Sundaram
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<form name="ww">
<input type="hidden" name="kk.ss.ee" value="abcd">
</form>

How will i use eval function on this input parameter 'kk.ss.ee' to get the value 'abcd'?
I am generating the hidden parameters dynamically and the client requirement has that the names should be dot seperated.

Tried escaping all occurrences '.' but that did not work.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
document.forms[0].elements["elementName"].value

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic