$.fn.wsjtDecodingDepthsInput = function() { var renderTable = function(data) { var $table = $(''); $table.append($.map(data, function(value, mode){ return $(''); })); return $table; } this.each(function(){ var $input = $(this); var $el = $input.parent(); var $table = renderTable(JSON.parse($input.val())); $el.append($table); }); };
' + mode + '' + value + '