Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

dukeofhoops on "[Plugin: Contact Form 7] Checkboxes - limit # that can be checked"

$
0
0

I am creating a form and I want to limit the number of options people can choose (they need to choose exactly 5 options).

I found this:

$("#bla :checkbox").click(function() {
    if($("#bla :checkbox:checked").length >= 5) {
        $("#bla :checkbox:not(:checked)").attr("disabled", "disabled");
    } else {
        $("#bla :checkbox").attr("disabled", "");
    }
});

[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

however I am unsure where to exactly put/edit this. Any assistance would be greatly appreciated!

http://wordpress.org/extend/plugins/contact-form-7/


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>