I have a form with a standard reset button coded thusly:
Trouble i
I'm just an intermediate in PHP, and a bit lazy to dive into a new language like JQuery, but isn't the following a simple and elegant solution?
Can't see a reason why not have two submit buttons, just with different purposes. Then simply:
if ($_POST['submitreset']=="Reset") {
$_source = "--Choose language from--";
$_target = "--Choose language to--"; }
You just redefine your values back to whatever the default is supposed to be.