i have a table in javascript (you can find the code here: http://jsfiddle.net/webYa73/xuw23/)

If i choose "case6" in the select box, a button appears near the input field (3cols), the edit button should change and instead we should see a save button and a cancel button

how can i implement that in javascript?
please help