1 reply [Last post]
StevenMG
StevenMG's picture
Offline
newbie
Last seen: 5 years 33 weeks ago
Timezone: GMT-5
Joined: 2015-02-28
Posts: 1
Points: 2

When a user clicks the CAPTCHA challenge to send an email and enters a wrong match I a looking for a way to get the style sheet (css) to clear the HTML field for the user so they can enter another challenge reply without having to first remove the reply that did not work.

This sees the text box. I can change the color, font size etc but am unable to see how to clear the failed CA:PCHA challenge when the text field gets the focus:

/* Captcha Text Field */
.contactCaptchaText {width:130px; font-size:15px; margin: 10px 0 10px 10px;}

Thank you in advance! Smile

AttachmentSize
clearTxtField.png7.04 KB
Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 2 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Hi StevenMG, That would have

Hi StevenMG,
That would have to be done with JavaScript.
You will have to find the field and empty it's value.