I have a variable named LastClass , it can have the value of headerSortDown or headerSortUp . I'm rescuing it from an ordered column.
I want to transfer this variable to <a href>
but wanted to change the text of it.
For example instead of getting href="produto=headerSortDown"
getting href="produto=Down"
.
This variable changes dynamically as the user orders the DESC or ASC column. I can already dynamically redeem this.
How can I use a if
or something like this to be able to change the value name of the variable and thus put in href
?