Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMarcelo 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?