PDA

View Full Version : Check box (javascript)



learnerabc
13 Feb 2011, 02:32 PM
Hi all,
I am new to web programming. can some one tell me, if i make a page in javascript and have some check boxes on it, lets say 5 check boxes and i want to limit user to chk only 2..how can i do that. right now when i check mark the boxes..it let me do that for all 5 but i want to resitrt it to any 2..

Thanks

PerformanceDude
14 Feb 2011, 12:11 AM
Take a look at this article: http://www.plus2net.com/javascript_tutorial/checkbox-limit.php

It explains it pretty well.