tommy.furlan89 Posted May 14, 2014 Share Posted May 14, 2014 hello I need help to solve this exercise that I have proposed in a exam Create an object ValidatedFormPrototype that represents a form validable. This object will contain six methods: • addIntegerField(name): add a field integer to the internal representation; • addMailField(name): add a field mail to the internal representation; • insertIntoNode(node): insert the form as an element in the DOM as a child of the specified node and returns the form element product; • isValid(): returns true or false depending on whether the fields currently placed on the form are correct. Namely that the fields integer type are correct, and that the fields mail contain at least one character @; Create the constructor ValidatedForm that using the previous object as prototype. Link to comment Share on other sites More sharing options...
Ingolme Posted May 14, 2014 Share Posted May 14, 2014 What code have you written? If there's a specific part you have a problem with when trying to write code then you can ask about it. Of course I could do this exercise, but it's your homework, not mine. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now