bp_core_add_jquery_validate_inline_js()

Output the inline JS needed for the jQuery validate

Description

Source

File: bp-core/bp-core-cssjs.php

function bp_core_add_jquery_validate_inline_js() {
	?>

	<script>
		jQuery(document).ready(function(){
			jQuery('#buddypress #signup-form').validate({
				submitHandler: function(form) {
				  jQuery(form).submit();
				}
			});
		});
	</script>

<?php
}

Changelog

Changelog
Version Description
BuddyPress 3.1.1 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.