123456789101112131415161718192021222324252627 |
-
- <div>
- <label for="title" style="display:block;">Title <span class="option">(optional)</span></label>
- <br /><input class="txt" type="text" name="title" id="title" value="{editTitle}" size="80" />
- </div>
- <div>
- <label for="description" style="display:block;">Body</label>
- <textarea rows="12" cols="84" name="description" id="description">{editBody}</textarea>
- </div>
-
- <input type="hidden" name="url" id="url" value="" />
- <input type="hidden" name="type" id="type" value="{type}" />
- <input type="hidden" name="date" id="date" value="{date}" />
- <input type="hidden" name="id_user" id="id_user" value="{id_user}" />
-
- <script>
- $("#autosave").validate({
- rules: {
- description: "required"
- },
- errorElement: "span",
- errorClass: "validate_span",
- errorPlacement: function(label, element) {
- label.prependTo(element.prev())
- }
- });
- </script>
|