Yes but this way I need to add the functionality on all the resources/pages.
I was looking for a single code solution which will be applied to all the resources automatically.
While creating/adding new product the user will just select the specification values from the options and for that I need to organize the form to make it user friendly.