jquerry form function

Looking for a fix for this code, we had some developers create some code on our new form and want the third question, "Your Future Internet Usage" to drop down after the second question from part two (How do you currently receive Internet at your home?) is check off via the radio buttons.

I do not know if they have the code separated by class or if I can just change one variable in the script for that section to allow for this to happen. We need a fix soon to replace our old website page....
http://www.wavedirect.net/index.php/recommend-a-package

I have uploaded all HTML and code files, just let me know what lines of code to change or where to look ...

here is the site:   http://www.forgeinfinity.com/wavetest
fadercreepAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
I cannot even get to the second part - is there some secret button?
0
fadercreepAuthor Commented:
sorry, yes you need to fill out all form fields in part one and use both drop downs to allow the next question to appear.
0
GaryCommented:
Change this in the page
	$('#planformcontainer_wrapper2 span,#planformcontainer_wrapper2 label').click(function(){		
		var radioval1 = $('input[name="bestcharacterizes"]:checked').val();
		var radioval2 = $('input[name="receivetype"]:checked').val();
		if(radioval1 === undefined){}
		else{
			var height3 = $('#planformcontainer_wrapper3 .planbox_form_container').outerHeight();
			$('#planformcontainer_wrapper3 .downarrow1').css('display','block');
			$('#planformcontainer_wrapper3').css('border','none');
			$('#planformcontainer_wrapper3').animate({height:height3},600);
		}
	});

Open in new window

To
	$('#planformcontainer_wrapper2 span,#planformcontainer_wrapper2 label').click(function(){		
		var radioval1 = $('input[name="bestcharacterizes"]:checked').val();
		var radioval2 = $('input[name="receivetype"]:checked').val();
		if(radioval1 !=undefined && radioval2 !=undefined){
			var height3 = $('#planformcontainer_wrapper3 .planbox_form_container').outerHeight();
			$('#planformcontainer_wrapper3 .downarrow1').css('display','block');
			$('#planformcontainer_wrapper3').css('border','none');
			$('#planformcontainer_wrapper3').animate({height:height3},600);
		}
	});

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

fadercreepAuthor Commented:
you need to fill out name address and all other fields... including

name
housenumber
email
streetname
town
street type dropdown
street direction dropdown

second question will appear after the second dropdown is selected and all form fields are filled out
0
GaryCommented:
I don't find that form intuitive and I'm web savvy, that there are textboxes there to be filled in is almost impossible to see.
0
fadercreepAuthor Commented:
Looking to brush up on my code can you recommend a good code book for this type of script?
0
GaryCommented:
I'd say the web is your best reference, any book you buy will almost always be out of date
0
fadercreepAuthor Commented:
thanks Gary I will have the designers move the "Town" form field and also try and use a more visible font colour.
0
GaryCommented:
Maybe make the textboxes have a darker border and lighter watermark
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.