Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get public url as laravel asset() in jquery

$("select#lang").css("background-image",
  '{{ URL::asset('/images/flags/') }}' + $("select#lang").val() + '.png)');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #public #url #laravel #jquery
ADD COMMENT
Topic
Name
2+9 =