From 0b7c3946ab77fcf6bb9a73e30ff9261201fd61e2 Mon Sep 17 00:00:00 2001 From: Mika Tuupola Date: Sat, 26 Oct 2013 22:03:07 +0300 Subject: [PATCH] Mention Zepto in README. --- README.markdown | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.markdown b/README.markdown index 18cb588..857028f 100644 --- a/README.markdown +++ b/README.markdown @@ -1,8 +1,8 @@ -# Chained Selects Plugin for jQuery +# Chained Selects Plugin for jQuery and Zepto -Chained is simple jQuery plugin for chained selects. You can choose from two different versions. Use jquery.chained.js if you do not want to make external queries for setting content of child selects. This version uses classnames of select options to decide content. +Chained is simple plugin for chained selects. It works with both jQuery and Zepto. You can choose from two different versions. Use jquery.chained.js if you do not want to make external queries for setting content of child selects. This version uses classnames of select options to decide content. For more complex scenarios maintaining option tag classnames will get cumbersome. Also if you want to make queries against database use jquery.chained.remote.js instead. This version makes an external AJAJ query and uses the returned JSON to build child selects. @@ -10,10 +10,16 @@ For more complex scenarios maintaining option tag classnames will get cumbersome Child selects are chained to parent select. All selects must have an id attribute. Child select options must have class names which match option values of parent select. When user selects something in parent select the options in child select are updated. Options which have matching classname with parents currently selected option will stay visible. Others are hidden. -First you must include jQuery and Chained in your code: +First you must include jQuery or Zepto and Chained in your code: - - + + + +If you are using Zepto you must also include the optional selector module. + + + + Then lets assume you have the following HTML code: