Hi, I am having a problem in getting the value of a particualr field element. i have a function that gets the field name but i want to get the value. function playText(message) { var message; // message = Field name newMessage=productform.RestaurantNamePhonetic.value; // this gives a error alert(newMessage); // display the value of the text field } PHP:
<script type="text/javascript"> function getText { alert(document.productform.RestaurantNamePhonetic.value); } </script> HTML: