Jump to content


Photo

remove dollar sign from salary


1 reply to this topic

#1 ShotgunCommish

ShotgunCommish

    Veteran

  • Members
  • PipPipPip
  • 102 posts
  • Gender:Male
  • Location:Rineyville, KY

Posted 19 November 2021 - 11:49 PM

Testing some things out and looking to remove the dollar sign from the player salaries and the the salary cap rows on the roster reports. Having difficulty with such 

 

the last thing I have tried in my footer 

 

$("td").text().replace("$", "")

 

Can one you fine individuals assist me with this?

 

 

https://www68.myfant...21/home/30521#0


Founder and Commish of Buckeye Nation since 1995
Promised Land -Buckeye Nation franchise since 1995| 8 time champion
 


#2 habman

habman

    Veteran

  • Members
  • PipPipPip
  • 2,906 posts
  • Gender:Male
  • Location:Leamington ON, Canada

  • 2021 MFL: 55681
  • , 18835

Posted 20 November 2021 - 07:04 AM

I would suggest to be more specific and target only the roster tables by using #roster

 

Place the following in a footer message

 

<script>
$("#roster td.salary,#roster tr.total_salary_row th, #roster tr.salary_cap_row th, #roster tr.cap_room_available_row th").each(function(){
	$(this).text($(this).text().replace("$",""));
});
</script>




Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users