From 612fdc9288d4db76fafaabc64652db7923df6a20 Mon Sep 17 00:00:00 2001 From: "mark.baldemor" Date: Fri, 28 Sep 2018 19:56:51 +0800 Subject: [PATCH] Recaptcha provided getResponse() method --- .../incubator/client/google/recaptcha/ReCaptcha.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/gwt/material/design/incubator/client/google/recaptcha/ReCaptcha.java b/src/main/java/gwt/material/design/incubator/client/google/recaptcha/ReCaptcha.java index 42e7d235c..3782de83d 100644 --- a/src/main/java/gwt/material/design/incubator/client/google/recaptcha/ReCaptcha.java +++ b/src/main/java/gwt/material/design/incubator/client/google/recaptcha/ReCaptcha.java @@ -152,4 +152,12 @@ public void setType(RecaptchaType type) { public RecaptchaType getType() { return type; } + + /** + * Will get the response + * @return + */ + public String getResponse() { + return $this().find("#g-recaptcha-response").val().toString(); + } }