Wednesday, 15 July 2015

laravel - Disable drop down? -


I have checked this answer:

But no luck

I need to deactivate the first item in my dropdown How do I use Form Builder? Select <::

  form :: ('mine-selection', array ('please-select' = & gt; 'please select', 'a' = I own this for Macro was written I    

I do not think there is any default way of doing this for Larval .

  HTML :: macro ('mySelect', function ($ value, $ extras) {$ build = array (); foreach ($ Value as $ key = & gt; $ val) {$ Build [] = sprintf ('& lt; option & gt;% s & lt; / option & gt;', $ val);} $ build [0] = sprintf ('& lt; option (& quot; Select & gt;% s & lt; / select & gt; ', implode (", $ build));} ;; & quot;  

Hope it helps


No comments:

Post a Comment