Desalinating button after exchanging css with Jquery

1

I have the following input:

Clickingthechangeanewinputbuttonappears:

Whenyouclickthisremovebutton,thefirstinputreappears,onlythebuttonbreaksthelineandlookslikethis:

Hereisthescriptbehind:

<script>$(document).ready(function(){$("#edita,#remove").click(function(){

      var id = $(this).attr('id');

      if(id=='edita'){
        $('#numero').css("display","none");
        $('#edita').css("display","none");
        $('#trocaNum').css("display","block");
      }
      if(id=='remove'){
        $('#numero').css("display","block");
        $('#edita').css("display","inline");
        $('#trocaNum').css("display","none"); 
      }

    });        
  });
</script>

Suggestions?

    
asked by anonymous 10.12.2015 / 17:57

1 answer

1

Exchange the

$('#numero').css("display","block"); 

by

$('#numero').css("display","");

So you must solve.

    
10.12.2015 / 19:01