Greyed Out Drop Down Element - Post...

User 187934 Photo


Senior Advisor
20,181 posts
Online Now

Try this,
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
var jQ = $.noConflict(true);
jQ(document).ready(function(){
jQ("#item107").hide();
jQ("input[name='email1_verification'],input[name='email']" ).bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='email1_verification']" ).filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='email']" ).val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item107").show();
}else{jQ("#item107").hide();}
});

jQ("#item192").hide();
jQ("input[name='Q24']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name=‘Q24']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q24']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item192").show();
}else{jQ("#item192").hide();}
});

jQ("#item114").hide();
jQ("input[name='Q25']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q25']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q25']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item114").show();
}else{jQ("#item114").hide();}
});

jQ("#item114").hide();
jQ("input[name='Q28']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q28']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q28']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item114").show();
}else{jQ("#item114").hide();}
});

jQ("#item121").hide();
jQ("input[name='Q32']").bind('change',function(){
var jQnonempty = jQ("input[name='Q32']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q32']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item121").show();
}else{jQ("#item121").hide();}
});

jQ("#item119").hide();
jQ("input[name='Q35']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q35']" ).filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q35']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item119").show();
}else{jQ("#item119").hide();}
});

jQ("#item120").hide();
jQ("input[name='Q37']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q37']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q37']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item120").show();
}else{jQ("#item120").hide();}
});

jQ("#item122").hide();
jQ("input[name='Q39']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q39']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q39']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item122").show();
}else{jQ("#item122").hide();}
});

jQ("#item123").hide();
jQ("input[name='Q41']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q41']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q41']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item123").show();
}else{jQ("#item123").hide();}
});

jQ("#item122").hide();
jQ("input[name='Q37']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q37']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q37']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item122").show();
}else{jQ("#item122").hide();}
});

jQ("#item122").hide();
jQ("input[name='Q37']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q37']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q37']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item122").show();
}else{jQ("#item122").hide();}
});

jQ("#item122").hide();
jQ("input[name='Q37']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q37']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q37']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item122").show();
}else{jQ("#item122").hide();}
});

jQ("#item160").hide();
jQ("input[name='Q65']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q65']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q65']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item160").show();
}else{jQ("#item160").hide();}
});

jQ("#item165").hide();
jQ("input[name='Q66']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q66']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q66']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item165").show();
}else{jQ("#item165").hide();}
});

jQ("#item185").hide();
jQ("input[name='Q67']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q67']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q67']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item185").show();
}else{jQ("#item185").hide();}
});

jQ("#item164").hide();
jQ("input[name='Q67']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q67']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q67']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item164").show();
}else{jQ("#item164").hide();}
});

jQ("#item183").hide();
jQ("input[name='Q77']").bind('keyup blur change',function(){
var jQnonempty = jQ("input[name='Q77']").filter(function() {
return this.value != ''
});
var jQequals = jQ("input[name='Q77']").val();
if (jQnonempty.length !== 0 && jQnonempty.attr('value') == jQequals ) {
jQ("#item183").show();
}else{jQ("#item183").hide();}
});

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

No go I'm afraid as the "text field" problem is still there in that the next question under testing greys out and locks when testing on the webpage,

The only way to move on is by continually pressing "enter" which has always been a problem in that both the text elements do not display the next element using the "is not empty"option.

I think that enough time has been spent on this so I will just continue with the way that I have always done it in that I set it so that the "text field" and the next question are displayed together.

Thanks again for your time,

Pete
User 187934 Photo


Senior Advisor
20,181 posts
Online Now

Can you share a link to the form with my new code in it? It worked for me.
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,

Link to the page with the test form.

I have cleared the history and cache and the form still stops at the the microchip number element. If I press enter, the next question is displayed but it is frozen.

Pete

https://tvbr.org.uk/test.html
User 187934 Photo


Senior Advisor
20,181 posts
Online Now

The new code isn't on that page. Remove all of the html elements and put a single one at the very top with the code I posted.
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

I have removed all of the html elements except your posted one.

After uploading, I tested the form and it still has the same issue as before.

Pete

https://tvbr.org.uk/test.html
User 187934 Photo


Senior Advisor
20,181 posts
Online Now

That's odd because it works here.
https://ericrohloff.com/coffeecup/ccfor … nt%20copy/
I attached my project.
Attachments:
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

From my end, when I put in a 15 digit number, nothing happens but the next question appears when I left click.

I have used the program since it was released and I have the latest version but I have never been able to get a text field or a text area to display the next question unless I have set the previous question to display both the text element and the next question at the same time.

Hope you can understand what I am trying to do.

Pete
User 187934 Photo


Senior Advisor
20,181 posts
Online Now

What browser are you using?
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

Both Chrome and Safari as I have a Mac.

Latest file attached.

Pete
Attachments:

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.