Try this
[{"id":"f4e479ac02c5690e","type":"ui_template","z":"09deee63c1b960f7","group":"c7a27394.057878","name":"","order":5,"width":0,"height":0,"format":"<script>\n (function(scope) {\n scope.$watch('msg', function(msg) {\n if (msg) { \n $(\".input-\"+msg.payload).find('input')[0].value = \"\"\n $(\".input-\"+msg.payload).find('input').focus()\n \n }\n });\n})(scope);\n</script>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":460,"y":3180,"wires":[[]]},{"id":"9f3b2d75554a2006","type":"ui_text_input","z":"09deee63c1b960f7","name":"","label":"Input 1","tooltip":"","group":"c7a27394.057878","order":4,"width":0,"height":0,"passthru":false,"mode":"text","delay":300,"topic":"topic","sendOnBlur":true,"className":"input-1","topicType":"msg","x":450,"y":3240,"wires":[[]]},{"id":"0097dce8c469dc8d","type":"ui_button","z":"09deee63c1b960f7","name":"","group":"c7a27394.057878","order":6,"width":0,"height":0,"passthru":false,"label":"clear","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"1","payloadType":"str","topic":"topic","topicType":"msg","x":270,"y":3240,"wires":[["f4e479ac02c5690e"]]},{"id":"96c1f415b3441342","type":"ui_button","z":"09deee63c1b960f7","name":"","group":"c7a27394.057878","order":6,"width":0,"height":0,"passthru":false,"label":"clear","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"2","payloadType":"str","topic":"topic","topicType":"msg","x":270,"y":3280,"wires":[["f4e479ac02c5690e"]]},{"id":"3ed9d5116728df09","type":"ui_text_input","z":"09deee63c1b960f7","name":"","label":"Input 2","tooltip":"","group":"c7a27394.057878","order":4,"width":0,"height":0,"passthru":false,"mode":"text","delay":300,"topic":"topic","sendOnBlur":true,"className":"input-2","topicType":"msg","x":450,"y":3280,"wires":[[]]},{"id":"c7a27394.057878","type":"ui_group","name":"aha","tab":"54e197d8.7f7fe8","order":2,"disp":false,"width":"9","collapse":false,"className":""},{"id":"54e197d8.7f7fe8","type":"ui_tab","name":"key","icon":"dashboard","order":1,"disabled":false,"hidden":false}]