Yes, this is absolutely OK: fiddles are meant to be fiddled with.
I don't mind when others take a fiddle I've created as a base for theirs - this is one of the reasons I post fiddles, and why they are useful. It saves the boilerplate of creating them.
A fiddle isn't something you should be protective of nor proud of - it is not the answer, it just accompanies the answer.
In addition, the data and schema in the fiddle probably originate from the question anyway.
There are other cases when fiddles are useful:
- As counter-example to an answer.
- Trying to reproduce the issue in the question.
- Sometimes we encourage the poster to add a fiddle.
- Sometimes when I try to solve a question and don't succeed, I still post the fiddle as a comment so others can pick it up.
These fiddles are posted as community service, with full intention they will be expanded and used by others. I don't see why fiddles posted in answers are different.
Should you give credit?
It depends. You are using something from another answer while adding your own - this is a competitive scenario, and some people might get overly protective of "their" fiddle. An acknowledgement you've used it as a base may defuse this feeling.
It also helps to add more edge cases or sample data. If you're adding a new answer, it should be better than the existing answers.
On the other hand, in my opinion this "credit" usually gets in the way. For example:
Working example (based on User's example): http://example.com/fiddles/he2V9
I usually use comments for this credit, it isn't really part of the answer.
I would upvote the other answer - it is probably a good answer if it is supported by a working example.
However:
While I am liberal with the usage of fiddles, including their schema, sample data, and test cases or asserts, I would not use anything from the actual solution.
This isn't a real restriction because you are not shamefully copying another answer or adding a trivial improvement, you are suggesting a different solution, but it should still be said.