Bladephp: Now with 7+ codeigniter, php, and laravel project 7+ php project From $18/Year From Rs. 1000/Year

Hide elements using jquery on a condition

by
Category:javascript
javascript jquery
Hide elements using jquery on a condition

.hide() is similar to CSS property display:none {Also, I just saw xiaocui included that in his example.

 In the second example you can use 'hidden' as the value if you don't want your layout to be affected.

if(type=="money")
{
   \\hide some elements..
}

Check condition in jQuery hide

if (type == "money") {
  $('#target1').hide(); //or
  $('#target1).css('display', 'none'); 
}

0 Comments


Html code work in comment box


Related Post