Captcha and Submit button - Page 3 -...

User 187934 Photo


Senior Advisor
20,265 posts
Online Now

Yes, change the regex in this
jQ(this).val().match(/[^0-9]/g, '')
to be the one that fits your rules.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2056177 Photo


Registered User
232 posts

Hi Eric,
Thanks again but that is still not doing what I am trying to do so I have put a page up for you to look at and maybe you can tell me what I'm doing wrong.
The link is: http://www.nwsc.tvbr.org.uk/test.html
The required Regex string is showing as a placeholder.
Sorry to be a nuisance.
Pete
User 187934 Photo


Senior Advisor
20,265 posts
Online Now

There's only a drop down on that page.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2056177 Photo


Registered User
232 posts

Sorry Eric, select option 3
Pete.
User 2056177 Photo


Registered User
232 posts

Hi Eric,
I've taken out the dropdown so it's just the Regex now,
Thanks,
Pete.
User 187934 Photo


Senior Advisor
20,265 posts
Online Now

Give this a try.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript">var jQ = $.noConflict(true);
jQ(document).ready(function(){
jQ('#fb-submit-button').hide();
jQ("input[name='regex1']").keyup(function(){

if (!jQ(this).val().match(/^TVBRhuey45$/) || jQ(this).val() == "") {

jQ('#fb-submit-button').hide();
jQ('#fb-submit-button').attr('disabled', 'disabled');
}else{
jQ('#fb-submit-button').show('slow');
jQ('#fb-submit-button').removeAttr('disabled');
}
});
});</script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2056177 Photo


Registered User
232 posts

Eric, you are an absolute star!!!!!!
Thank you so much for all of the time and effort that you have put in to get this working for me.
I really cannot thank you enough and without helpful people like yourself, a lot of us on these forums would be struggling.
Thanks again,
Pete.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.