Skip to content

Commit

Permalink
Updated demo with example of how to make title required. Minor css ch…
Browse files Browse the repository at this point in the history
…ange.
  • Loading branch information
anderly committed Jun 27, 2012
1 parent 30f96ba commit 0c3ce43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion css/style.css
Expand Up @@ -9,7 +9,7 @@ label.error {

input.error, textarea.error, select.error {
border: #CC0000 solid 1px !important;
background-color: #FFEBE8;
background-color: #FFEBE8 !important;
}
/* END jquery.validate styles */

Expand Down
4 changes: 4 additions & 0 deletions demo/demo.php
Expand Up @@ -137,6 +137,10 @@
),
'validation' => array(
'rules' => array(
// optionally make post/page title required
'post_title' => array(
'required' => true
),
$prefix . 'fname' => array(
'required' => true
),
Expand Down

0 comments on commit 0c3ce43

Please sign in to comment.