Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Marcelo Retana
2,534 PointsRedirecting to the API (JS)
I need to redirect to this API https://api.laureate.cr/AppCenter/ExecuterSP once the form is has been validated
this is the html5 code
<form name="formTest" action="https://api.laureate.cr/AppCenter/ExecuterSP" method="POST">
<input type="text" name="name" id="name" placeholder="Name" maxlength="50" pattern="[a-zA-Z]*" required>
<input type="text" name="last_name" id="last_name" placeholder="Last Name" maxlength="50" pattern="[a-zA-Z]*">
<input type="text" name="id" id="id" placeholder="ID" maxlength="10" pattern="\d+">
<input type="text" name="phone" id="phone" placeholder="Phone Number" pattern="\d+">
<input type="submit">
</form>
2 Answers

Samuel Rueby
22,538 PointsTo do what? Your code correctly POSTs the form to https://api.laureate.cr/AppCenter/ExecuterSP.
There's a jQuery plugin related to validation. Is that what you're referring to?

Samuel Rueby
22,538 PointsSo what's the issue?

Marcelo Retana
2,534 PointsIs there any jQuery plug in or any JS function in special to do it?