Step 7: validating posts
Validating new posts.
<form id="post-form">
<div class="form-group">
<label for="post-title" class="control-label">Post Title</label>
<input type="text" class="form-control" id="post-title" placeholder="A new post"/>
</div>
<div class="form-group">
<label for="post-body" class="control-label">Post Content</label>
<textarea type="text" class="form-control" id="post-body" placeholder="A new Body"></textarea>
</div>
<button type="submit" class="btn btn-primary">Post</button>
</form>What have we done here?
Last updated