Contribute to our site
<script type="text/javascript"><!-- [et_pb_line_break_holder] --> jQuery(document).ready(function($){<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> //hide all inputs except the first one<!-- [et_pb_line_break_holder] --> $('p.hide_this').not(':eq(0)').hide();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> //functionality for add-file link<!-- [et_pb_line_break_holder] --> $('a.add_file').on('click', function(e){<!-- [et_pb_line_break_holder] --> //show by click the first one from hidden inputs<!-- [et_pb_line_break_holder] --> $('p.hide_this:not(:visible):first').show('slow');<!-- [et_pb_line_break_holder] --> e.preventDefault();<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> //functionality for del-file link<!-- [et_pb_line_break_holder] --> $('a.del_file').on('click', function(e){<!-- [et_pb_line_break_holder] --> //var init<!-- [et_pb_line_break_holder] --> var input_parent = $(this).parent();<!-- [et_pb_line_break_holder] --> var input_wrap = input_parent.find('span');<!-- [et_pb_line_break_holder] --> //reset field value<!-- [et_pb_line_break_holder] --> input_wrap.html(input_wrap.html());<!-- [et_pb_line_break_holder] --> //hide by click<!-- [et_pb_line_break_holder] --> input_parent.hide('slow');<!-- [et_pb_line_break_holder] --> e.preventDefault();<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --></script>