Browse Source

Button inputs can now transform value to onclick

Manuel Gall 3 years ago
parent
commit
fbd0d365b0
1 changed files with 7 additions and 0 deletions
  1. 7 0
      template/form.html

+ 7 - 0
template/form.html

@@ -108,6 +108,7 @@ jQuery(function($) {
           this.value = "true"
         });
         
+        //Fill out inputs
         var urlpara = getSearchParameters();        
         for (var key in urlpara) {
           if (urlpara.hasOwnProperty(key)) {
@@ -117,6 +118,12 @@ jQuery(function($) {
            }
         }
         
+        //$( "input[value*]" ).val( urlpara[key] );
+        $(":input").each(function(){
+          $(this).attr("onclick", $(this).attr("value"))
+        });
+        
+        
         
       },
       error: function (request, status, error) {