I have created a button named "Freeze". I want to create a dynamic action that changes the name from "Freeze" to " "UnFreeze" on click. I have set the static id for the button as "Freeze_StaticID" and then created a dynamic action for the click event. Under True condition, I want to add a javascript query for the same. Can anyone please tell me the query I need to add for the same? I tried adding the code below but it didn't work.
$("#Freeze_StaticID").attr ('value', 'UNFREEZE')
$("#Freeze_StaticID").html ('UNFREEZE')
will change the text, if that's what you're trying to do