1
2
3
4
5
6
.txindividualmembers {
	display: none;
}
.txbentable {
	display: none;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<script>
/*Hides Individual Member Signup Link and Benefits Table for certain Texas Registrations*/
$(function() {
  var loc = window.location.href; // returns the full URL
  if(/ctw/.test(loc)) { // Texas CT WIL
    $('#discount').addClass('txindividualmembers');
    $('#benTable').addClass('txbentable');
  }
  if(/saw/.test(loc)) { // Texas SA WIL
    $('#discount').addClass('txindividualmembers');
    $('#benTable').addClass('txbentable');
  }
  if(/gc/.test(loc)) { // Texas GC WIL
    $('#discount').addClass('txindividualmembers');
    $('#benTable').addClass('txbentable');
  }
  if(/txmem/.test(loc)) { // Texas Membership
    $('#discount').addClass('txindividualmembers');
    $('#benTable').addClass('txbentable');
  }
  if(/txdnl/.test(loc)) { // Texas Diversity and Leadership Conference
    $('#discount').addClass('txindividualmembers');
    $('#benTable').addClass('txbentable');
  }
});
</script>
1
2
3
4
<div id='benTable'>
<table class='regtable'>
</table>
</div>