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?