I would like to have my input box always show the value of the last checked checkbox. 

This is my try but it is not working:

```
<input type="text" name="status" value="blue" class="status"/>

<div class="checkbox"><input type='checkbox' value='blue' checked/> blue</div>
<div class="checkbox"><input type='checkbox' value='green' checked/> green</div>
<div class="checkbox"><input type='checkbox' value='yellow' checked/> yellow</div>

$("input").change(function(){
     $('.status').val($('input:checkbox:last'));
});

```

<https://jsfiddle.net/4csbmtad/>

Maybe you have a suggestion for me!

---

I am making an update I forgot: If nothing is checked, then I need to display the word "nothing selected" in the input field