Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(function () {
- function removeCampo() {
- $(".removerCampo").unbind("click");
- $(".removerCampo").bind("click", function () {
- if($("tr.linhas").length > 1){
- $(this).parent().parent().remove();
- }
- });
- }
- $(".adicionarCampo").click(function () {
- novoCampo = $("tr.linhas:first").clone();
- novoCampo.find("input").val("");
- novoCampo.insertAfter("tr.linhas:last");
- removeCampo();
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement