aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes help with eval function. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "help with eval function." Watch "help with eval function." New topic
Author

help with eval function.

Sandeep Sundaram
Greenhorn

Joined: Mar 22, 2005
Posts: 9
<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

Joined: Nov 08, 2001
Posts: 15376
    
    6
document.forms[0].elements["elementName"].value

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: help with eval function.