mateuszmarkowski / jQuery-Seat-Charts

jQuery Seat Charts Plugin
MIT License
596 stars 209 forks source link

Minimum or Maximum selection #24

Closed shenglim closed 8 years ago

shenglim commented 8 years ago

Hi, how can we set maximum and minimum selection of the seats?

mateuszmarkowski commented 8 years ago

Currently there's no built-in feature for that. You would have to implement your own logic for example when user submits the checkout form. The easiest way to find out how many seats have been selected will be: $('#seat-map'). seatCharts().find('selected').length If the length is within your required limit, user can submit the form, otherwise you will display an error message.

shenglim commented 8 years ago

Alright, thank you very much !