This question is an exact duplicate of:
I have certain blocks of code like BlockA(a,b,c) and BlockB(b,d,e) and so on where these a,b,c, etc.. are all input fields. All these blocks are hidden initially with css and post editor has the choice to load as many blocks in the order they want. My idea was to fit all these into a single metabox for custom post type. Right now, i can create those blocks dynamically using jQuery but when i click Wordpress update/publish button or i revisit the page again all the dynamically created blocks just disappear. Can someone suggest me a way to solve this issue?
Thanks very much in advance for your help.