ejaboneta Posted September 29, 2009 Share Posted September 29, 2009 I'm basically making a spreadsheet application that is one big form with multiple rows. I want the users to be able to update multiple rows at once. The problem is that I don't want rows that were not changed to be updated. How can I have the field be enabled when the user clicks or changes it? I know I can do this with check boxes but I don't want the user to have to click the checkbox to do it. So perhaps a checkbox that is checked when the user changes a field? I don't know much javascript so any advice will help. Quote Link to comment Share on other sites More sharing options...
ProXy_ Posted October 4, 2009 Share Posted October 4, 2009 You could always do something like this: <html> <head> <SCRIPT type="text/javascript"> function makeChoice() { document.form1.otherChoice.disabled=false; document.form1.otherChoice.focus(); } function Edit(obj) { obj.disabled=false; obj.style.display = ''; document.getElementById("noedit").style.display = 'none'; } </script> </head> <body onload="document.form1.otherChoice.disabled=true"> <!-- This copies then shows the flash on body load --> <form name="form1" action="#" method="post"><br> <div ID="noedit" onClick="Edit(document.form1.otherChoice)"><b>ExampleUser</b></div><input type="text" id="otherChoice" value="ExampleUser" style="display: none;"><br> </form> </body> </html> let me know if this helps you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.