I have a nested multified and I need to loop through the inner multifield items also. For outer multifield I was using :
$(".coral3-Multifield-item").each(function( index ) {//body}
Solved! Go to Solution.
Views
Replies
Total Likes
Target the parent/root multifiled using multifiled name like below.
$("[data-granite-coral-multifield-name='./multifield-name'] .coral3-Multifield-item").each(function( index ) {
//Parent multifield items loop
$(this).find(".coral3-Multifield-item").each(function( index ) {
//Child multifiled items loop
)};
)};
Target the parent/root multifiled using multifiled name like below.
$("[data-granite-coral-multifield-name='./multifield-name'] .coral3-Multifield-item").each(function( index ) {
//Parent multifield items loop
$(this).find(".coral3-Multifield-item").each(function( index ) {
//Child multifiled items loop
)};
)};
Views
Replies
Total Likes
@Shaheena_Sheikh - You need to target the specific class and use coral Ui in jquery. One example that you can consider is : https://aemsimplifiedbynikhil.wordpress.com/2018/07/29/multifield-and-dialog-data-in-jquery/
Views
Likes
Replies
Views
Likes
Replies