Skip to content

Commit f71df27

Browse files
committed
Use SetVal on <input> tag.
1 parent 6d9c156 commit f71df27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webdemo/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func main() {
1919
PrintTypes: true,
2020
}
2121
diff, text := jsondiff.Compare([]byte(a), []byte(b), &opts)
22-
jq("#resultDiff").SetText(diff.String())
22+
jq("#resultDiff").SetVal(diff.String())
2323
jq("#resultText").SetHtml(text)
2424
})
2525
jq("#buttonSwap").On(jquery.CLICK, func(e jquery.Event) {

0 commit comments

Comments
 (0)