Selector dynamic issue

By using the get attribute you can handle the selector as a dynamic by passing variables