Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

radio checked according to previous data in latravel

<input type="radio"  id="option1" name="status" value="0"  {{ ($site->is_active=="0")? "checked" : "" }} >OFF</label>

<input type="radio" id="option2" name="status" value="1" {{ ($site->is_active=="1")? "checked" : "" }} >ON</label>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #radio #checked #previous #data #latravel
ADD COMMENT
Topic
Name
2+9 =