Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] Limit number of "multiple instance" fields?

$
0
0

Here is a test site for you:
http://luo154.discover-wp.com/limit-number-of-multiple-instance-fields/
user/pass: xgren/111111

the CRED form using:
http://luo154.discover-wp.com/wp-admin/post.php?post=427&action=edit&lang=en&message=4
in the javascript window, using below codes:

jQuery(function( $ ) {
$("a.myzebra-add-new-field").click(function( event ) {
    $length = $('div.myzebra-repeatable-field').length;
  if($length>=5)
  {
  	$("a.myzebra-add-new-field").hide();
  }
})
});

Viewing all articles
Browse latest Browse all 20145

Trending Articles