Thanks for coming back ! btw - I spent half my life living inthe UK.
I'm not entirely sure I follow. In L5 I am using http://laravelcollective.com/docs/5.0/html#opening-a-form.
Moreover if I look at the source which my current code generates, I get an id field and a value field. I just don't know who to populate it. The value field is being created simply by having an empty string in this code:
<div class=" form-group">
<div class="col-sm-2 col-sm-offset-8 col-md-2 col-md-offset-6">{!! Form::label('total', 'Total:') !!}</div>
<div class="col-sm-4 col-md-4">{!! Form::text('total', ' ', ['class'=>'form-control ']) !!}</div>
</div>
The resulting source looks like this:
div class=" form-group">
<div class="col-sm-2 col-sm-offset-8 col-md-2 col-md-offset-6"><label for="total">Total:</label></div>
<div class="col-sm-4 col-md-4"><input class="form-control " name="total" type="text" value="" id="total"></div>
</div>
When I look at my JQuery script I am already trying to print into the unique fields with the #subtotal, #gst, #total. But I get nothing out when using the L5 Form::text ();
However when I use the simple html it outputs fine. Trouble is I need to grab those output when the user hits submit. This works and delivers the Jquery output:
<p>Subtotal =<span id="subtotal" style="padding:0 10px;"></span></p>
By way of reminder here was the JQuery script:
$(document).ready(function () {
$('#textboxone, #textboxtwo, #textboxthree').on({
blur: function () {
var a = $("#textboxone").val();
var b = $("#textboxtwo").val();
var c = $("#textboxthree").val();
var d = addnumbers(a, b, c);
var e = addGst(d);
var f = total(d, e);
$("#subtotal").html(d);
$("#gst").html(e);
$("#total").html(f);
}
});
});