I'm currently making a table of baseball data-- 
I'm trying to make a table that will hide multiple rows in javascript... now I put together a way to do it by class, but it is not fully doing it the way I wanted it to. I found and built some code as an attempt to get it to work - but apparently I didn't do a good job. Where indexOf is - I changed it from regex - because I want to see if the class contains the text - not if the class IS the text... however it did not seem to work.
The reason for that is, players can be multiple positions.
I'm using PHP to output the positions it's all coming from mySQL. So if the particular player is multiple positions it outputs it as such <tr class="pos-POSITION1-POSITION2-...> for example <tr class="pos-T2B-T1B-LF">...
if he is just one position it is outputted as such <tr class="pos-T1B">
Am I doing something wrong with my code - or what? Thanks so much for the help, see below for the code, I also have it running at
http://www.shopforeveryone.com/test.php
Thanks for any help!
Don R.
			
			I'm trying to make a table that will hide multiple rows in javascript... now I put together a way to do it by class, but it is not fully doing it the way I wanted it to. I found and built some code as an attempt to get it to work - but apparently I didn't do a good job. Where indexOf is - I changed it from regex - because I want to see if the class contains the text - not if the class IS the text... however it did not seem to work.
The reason for that is, players can be multiple positions.
I'm using PHP to output the positions it's all coming from mySQL. So if the particular player is multiple positions it outputs it as such <tr class="pos-POSITION1-POSITION2-...> for example <tr class="pos-T2B-T1B-LF">...
if he is just one position it is outputted as such <tr class="pos-T1B">
Am I doing something wrong with my code - or what? Thanks so much for the help, see below for the code, I also have it running at
http://www.shopforeveryone.com/test.php
Thanks for any help!
Don R.
 
				
		 
			 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		
 Facebook
Facebook Twitter
Twitter