All Projects → Dainerx → Inputtounsi

Dainerx / Inputtounsi

A jQuery plugin for entering and validating Tunisian users' data or any other data. It is made very easy to use and easier to customize

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Inputtounsi

Tableexport
The simple, easy-to-implement library to export HTML tables to xlsx, xls, csv, and txt files.
Stars: ✭ 781 (+3024%)
Mutual labels:  jquery-plugin, jquery
Jquery Datetextentry
jQuery plugin providing a widget for date entry (not a date picker)
Stars: ✭ 19 (-24%)
Mutual labels:  jquery-plugin, jquery
Isinviewport
An ultra-light jQuery plugin that tells you if an element is in the viewport but with a twist.
Stars: ✭ 646 (+2484%)
Mutual labels:  jquery-plugin, jquery
Push State
Turn static web sites into dynamic web apps.
Stars: ✭ 16 (-36%)
Mutual labels:  jquery-plugin, jquery
Jquery Selectric
jQuery plugin for easy manipulation and customization of HTML selects
Stars: ✭ 724 (+2796%)
Mutual labels:  jquery-plugin, jquery
Form2js
Javascript library for collecting form data
Stars: ✭ 630 (+2420%)
Mutual labels:  jquery-plugin, jquery
Selectpage
A simple style and powerful selector, including ajax remote data, autocomplete, pagination, tags, i18n and keyboard navigation features
Stars: ✭ 679 (+2616%)
Mutual labels:  jquery-plugin, jquery
Bootstrap Fileinput
An enhanced HTML 5 file input for Bootstrap 5.x/4.x./3.x with file preview, multiple selection, and more features.
Stars: ✭ 5,097 (+20288%)
Mutual labels:  jquery-plugin, jquery
Jquery Powertip
💬 A jQuery plugin that creates hover tooltips.
Stars: ✭ 822 (+3188%)
Mutual labels:  jquery-plugin, jquery
Animatescroll.js
A Simple jQuery Plugin for Animating Scroll
Stars: ✭ 708 (+2732%)
Mutual labels:  jquery-plugin, jquery
Trip.js
🚀 Trip.js is a plugin that can help you customize a tutorial trip easily with more flexibilities.
Stars: ✭ 789 (+3056%)
Mutual labels:  jquery-plugin, jquery
Jquery Animatenumber
jQuery animate number
Stars: ✭ 768 (+2972%)
Mutual labels:  jquery-plugin, jquery
Jcanvas
A jQuery plugin that makes the HTML5 canvas easy to work with.
Stars: ✭ 612 (+2348%)
Mutual labels:  jquery-plugin, jquery
Jquery Smartwizard
The awesome jQuery step wizard plugin
Stars: ✭ 635 (+2440%)
Mutual labels:  jquery-plugin, jquery
Form
jQuery Form Plugin
Stars: ✭ 5,122 (+20388%)
Mutual labels:  jquery-plugin, jquery
Rowgrid.js
A small, lightweight JavaScript plugin for placing items in straight rows (jQuery and vanilla JS version) – Demo:
Stars: ✭ 670 (+2580%)
Mutual labels:  jquery-plugin, jquery
Jquery.sumoselect
A jQuery Single/Multi Select plugin which can be used on almost any device
Stars: ✭ 527 (+2008%)
Mutual labels:  jquery-plugin, jquery
Paroller.js
Parallax scrolling jQuery plugin
Stars: ✭ 535 (+2040%)
Mutual labels:  jquery-plugin, jquery
Stupid Table Plugin
A stupidly small and simple jQuery table sorter plugin
Stars: ✭ 704 (+2716%)
Mutual labels:  jquery-plugin, jquery
Jquery Drawsvg
Lightweight, simple to use jQuery plugin to animate SVG paths
Stars: ✭ 759 (+2936%)
Mutual labels:  jquery-plugin, jquery

Input Tounsi

A jQuery plugin for entering and validating Tunisian users' data or any other data. It is made very easy to use and easier to customize.

Table of Contents

Demo and Examples

You can view a live demo, or try it yourself using the included html demo pages under the examples folder.

Features

  • Automatically validate input elements values of Tunisian user data based on default Tunisian criteria or chosen criteria.
  • Automatically validate the whole form before sending request to the backend.
  • Automatically display a message of error if the value entered does not match the default Tunisian criteria or chosen criteria.
  • Ability to override all default options in a very simple way.

Browser Compatibility

Chrome FF Safari IE Chrome Android Mobile Safari
9

Usage

  1. Include the script along with Jquery
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://cdn.rawgit.com/Dainerx/InputTounsi/5c25d240/build/InputTounsi.min.js"></script>
  1. Add the plugin script and initialise it on your input element
<input type="text" id="cin">
<script>
  $("#cin").verifyInputTounsi('cin');
</script>
  1. InputTounsi supports seven kinds of input, you can only use the supported ones.
  <script>
  $("#name").verifyInputTounsi("name");
  $("#lastname").verifyInputTounsi("lastname");
  $("#phone").verifyInputTounsi("phone");
  $("#email").verifyInputTounsi("email");
  $("#state").verifyInputTounsi("state",$("#city"));
  $("#city").verifyInputTounsi("city");
  $("#address").verifyInputTounsi("address");
  </script>

Note: In order for state and city elements to work, you have to pass as argument your city element to verifyInputTounsi() triggered by your city element.

Options

One of the greatest feature InputTounsi offers is overriding basically everything.

Pattern Overriding

  <script>
  $("#cin").verifyInputTounsi({
      name: "cin",
      pattern: /^(2|5|9)\d{7}$/
  });
  </script>

Placeholder Overriding

  <script>
  $("#cin").verifyInputTounsi({
      name : "cin",
      placeholder : "This is a custom placeholder, change me"
  });
  </script>

Style Overriding

  <script>
  $("#cin").verifyInputTounsi({
      name: "cin",
      styleError: [ ['border-color','yellow'],['border-style' , 'dashed'] ],
      styleSuccess: [ ['border-color','blue'],['border-style' , 'dashed'] ],
  });
  </script>

Note: You can override all css style properties following that pattern.

Error message Overriding

  <script>
  $("#cin").verifyInputTounsi({ 
      name : "cin",
      messageError: "This is a custom error message, change me!"
  });
  </script>

Error message style Overriding

  <script>
  $("#cin").verifyInputTounsi({ 
      name : "cin",
      messageErrorStyle: ['color','yellow']
  });
  </script>

Note: You can override all css style properties following that pattern.

Created-By

Trusted-By

In-Memory-Of

Farida Ben Ghorbel and Rabiaa Ben Ghorbel, lovely aunts, caring mothers and inspiring women.

Support and Contribution

Tested InputTounsi and have comments?

  • Please send your feeds back on one of my social medias accounts that can be on my personal website.

Interested in making InputTounsi better for everyone?

  • Come forward and contribute, everyone is welcome.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].