Its just like a load of random code thrown on the page !
Sorry, cannot understand what you are trying to do and how all this fits together
hello developers i am new on laravel and I am stuck in a problem since 3 days. Following is my code.
<?php
$check = 'not defined';
?>
<script>
function checkFunction() {
var checkBox = document.getElementById("chk").checked;
if (checkBox) {
document.getElementById("lbl").innerText='true';
<?php
$check = 'true';
?>
} else {
document.getElementById("lbl").innerText='false';
<?php
$check = 'false';
?>
}
}
</script>
<link href="{!! asset('public/css/app.css') !!}" media="all" rel="stylesheet" type="text/css"/>
<p id="lbl">true/false</p>
{!! Form::checkbox('isInvoiceHeader', 1, true, ['onClick' => 'checkFunction()','id'=>'chk']) !!}
<span><strong>Include Header</strong></span><br><br>
<a href="{{ url('showheader/'.$check) }}" class="btn btn-primary">
click here to go forward
</a>
public function index($isCheck)
{
echo $isCheck;
return view('showheader');
}
}
$check give always else section value weather checkbox is checked or unchecked but when I include true and false in paragraph then it give good output.... I think it is magic
please please please help me
Please or to participate in this conversation.