add_note.js.html

About this file

This file contains a script that handles the note addition form validation upon clicking the next buttons. The second next button when clicked on performs a trigger save. Required fields of the form are given the data-parsley-required attribute and an associated max character length.

Code Issues

  • Recommend creating a function that takes and HTML entity and sets its attributes with the data parsley attributes.

Code Check Report


                        

Documentation drawn from source code

  $(document).ready(function () {
   $(".note-control .note-divs").each(function (e) {
   $("#note-next-1").click(function () {
      success: function (data) {
   $("#note-next-2").click(function () {
     success: function (data) {
   $("#note-prev-1").click(function () {
   $("#note-prev-2").click(function () {
   $("#add-note-form").submit(function () {
   $("#note-content").keyup(function () {

Source code