mardi 26 décembre 2017

how do i include @include('layout.example') in Jquery code?

So if i have a small layout stored in example.blade.php, How do i use it in jquery ?

I want to include certain elements such as textboxes when a particular radio button is checked otherwise not.

Example:

$("document").ready(function(){

    if ($("#role").prop( "checked")) {
        $("#content").html(@include('layouts.nav'));
    }
    else
    {
        $("#content").html('');
    }

});

The above code does not work so please provide some solution.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2zwXBmh
via IFTTT

Aucun commentaire:

Enregistrer un commentaire