indi.anupam
Joined: 29 Jun 2008 Posts: 1
|
Posted: Sun Jun 29, 2008 7:29 pm Post subject: problem getting inline form element value... |
|
|
hello all,
I am trying to implement an inline form embedded in a user profile which enables user to update value when user clicks on any element / attribute on it..
you can see the sample profile page here
http://www.themodelshopusa.com/test/test.php
im using very simple concept using innerHTML to replace the text element to a form element. here is the code which do this
<head>
<script language=javascript>
function edit_prop(d)
{
document.getElementById(d).innerHTML = "<input type=text name=\"edit_prop\">";
}
</script>
</head>
<body>
<table>
<tr>
<td><div id="one" onclick="edit_prop('one')">click here</div></td>
</tr>
</table>
</body>
My problem is how do I get the updated data from the edit_prop input element
Please help me out as I already have tried / read a lot but no luck
much appreciated..
--Anu |
|