After a CLICK on the taskYes icon, i need to get the value on the input with the inputMins class
<form method="post" action="">
<span class="taskTitle">
<input id="newInput" type="text" />
<button class="taskYes"></button>
</span>
<span class="taskMinutes">
<input class="col-md-2 inputMins" type="text" />
</span>
</form>
Can you help me saying what is the best way to target my input?
I've tried this but ... without success :
$(".taskYes").click(function(){
var valeurTime = $(this).parent().next("span").val();
alert(valeurTime);
});