• 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