I'm trying to design a timepicker, see code below.
The UI works, but it does not return the picked time value.
Where's my mistake?
[{"id":"bdc44656.b6ba18","type":"template","z":"81867e0a.ab74f","name":"Set time","field":"payload","fieldType":"msg","format":"html","syntax":"plain","template":"<!DOCTYPE html>\n<html>\n<body>\n\n<form id=\"frm1\">\nSoll Zeit:\n <input type=\"time\" name=\"usr_time\" value=\"12:00\">\n</form>\n\n<button onclick=\"settime()\">Set time</button>\n\n<p id=\"newtime\"></p>\n\n<script>\nfunction settime() {\n var x = document.getElementById(\"frm1\");\n var text = \"\";\n var i;\n for (i = 0; i < x.length ;i++) {\n text += x.elements[i].value;\n }\n document.getElementById(\"newtime\").innerHTML = text;\n \n}\n</script>\n\n</body>\n</html>\n","output":"str","x":320,"y":840,"wires":[["33b61574.62b6ca"]]},{"id":"31ae916.1826b6e","type":"inject","z":"81867e0a.ab74f","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"x":142.73802947998047,"y":840.7142515182495,"wires":[["bdc44656.b6ba18"]]},{"id":"a96a5f0a.e91dc","type":"debug","z":"81867e0a.ab74f","name":"","active":true,"console":"false","complete":"true","x":690,"y":840,"wires":[]},{"id":"33b61574.62b6ca","type":"ui_template","z":"81867e0a.ab74f","group":"2831460e.824e4a","name":"Set Time","order":5,"width":"6","height":"3","format":"<div ng-bind-html=\"msg.payload | trusted\">div here</div>","storeOutMessages":false,"fwdInMessages":true,"templateScope":"local","x":500,"y":840,"wires":[["a96a5f0a.e91dc"]]},{"id":"2831460e.824e4a","type":"ui_group","z":"","name":"Mindbox (DIY Arduino)","tab":"14db2982.7f3606","order":2,"disp":true,"width":"6"},{"id":"14db2982.7f3606","type":"ui_tab","z":"","name":"Uhren","icon":"dashboard","order":2}]