javascript - Wordpress jQuery: Selecting div's with no specific class or id -


i have spent way time on , need (days in fact). html follows:

<div class="row">       <div class='five mobile-four columns'>         <label class='right inline'>           ciudad/estado         </label>       </div> </div> 

the code follows:

(function ($) {     $('div:contains("ciudad/estado")').css('display', 'none');     $("#field_2762").change(function () {         if ($(this).val() == 'seleccione') {             $("div:contains('ciudad/estado')").css('display', 'none');         }         if ($(this).val() == 'puerto rico') {             $("div:contains('ciudad/estado')").css('display', 'block');         }     }); }); 

basically want select parent div common .row class can hide , show dependent on dropdown. far variations of code have tried (in thousands) have not worked.

i new stackexchange please feel free kind.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -