I have an editable data grid. When the user clicks the edit button I change a textbox to a dropdown so they can select a new value. I also add a js attribute to the save button so they get prompted for confirmation before commiting the save.
This works well for me as I can inform the user of the state they are changing the value FROM before they commit. What I can't figure out is how I can get a handle on what they are changing the value TO before they commit. This is because my js gets bound with the grid, before the user chooses. I could put an auto post back on the ddl but that would be a little cumbersome I think for the user.
If I could just get a handle on the ddl in js I could get the selected value. Trouble is the ddl doesn't maintain the id I give it in html. It gets appended with the .NET ctl_ syntax so I can't use js
document.getElementById("ddl");
Is there another way to do this?
This works well for me as I can inform the user of the state they are changing the value FROM before they commit. What I can't figure out is how I can get a handle on what they are changing the value TO before they commit. This is because my js gets bound with the grid, before the user chooses. I could put an auto post back on the ddl but that would be a little cumbersome I think for the user.
If I could just get a handle on the ddl in js I could get the selected value. Trouble is the ddl doesn't maintain the id I give it in html. It gets appended with the .NET ctl_ syntax so I can't use js
document.getElementById("ddl");
Is there another way to do this?