You are viewing limited content. For full access, please sign in.

Question

Question

How to set my select inside a collection ?

asked on July 16, 2018

Hi all,

 

I'm trying to set a select but it doesn't work.

This is my code.

$('.cf-collection').change(function()
   {
      $('.rpx').each(function()
         {
 	      var x = $(this).find('#q10 input').val() ;
 	      if(x == "valeur1')
 	         {
 	             $(this).find('#q11 select').value = '24' ;
 	         }
         });
   });

Need your help please.

Regards

0 0

Replies

replied on August 1, 2018 Show version history

I think you want:

$(this).find('#q11 select').val('24') ;

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.