Skip to content

Commit

Permalink
Use SetVal on <input> tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsf committed Dec 3, 2015
1 parent 6d9c156 commit f71df27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webdemo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func main() {
PrintTypes: true,
}
diff, text := jsondiff.Compare([]byte(a), []byte(b), &opts)
jq("#resultDiff").SetText(diff.String())
jq("#resultDiff").SetVal(diff.String())
jq("#resultText").SetHtml(text)
})
jq("#buttonSwap").On(jquery.CLICK, func(e jquery.Event) {
Expand Down

0 comments on commit f71df27

Please sign in to comment.