It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

problem getting inline form element value...

problem getting inline form element value...

Postby indi.anupam on Sun Jun 29, 2008 6:29 pm

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
indi.anupam
 
Posts: 0
Joined: Sun Jun 29, 2008 6:23 pm

Who is online

Users browsing this forum: No registered users and 4 guests