Query plugin providing a Twitter Bootstrap user interface for managing tags Code on Github Bootstrap 2.3.2 Download Examples Markup Just add data-role="tagsinput" to your input field to automatically change it to a tags input field. Amsterdam Washington Sydney Beijing Cairo Show code statement returns $("input").val() "Amsterdam,Washington,Sydney,Beijing,Cairo" $("input").tagsinput('items') [ "Amsterdam" ,"Washington","Sydney","Beijing","Cairo"] True multi value Use a <select multiple /> as your input element for a tags input, to gain true multivalue support. Instead of a comma separated string, the values will be set in an array. Existing <option /> elements will automatically be set as tags. This makes it also possible to create tags containing a comma. Amsterdam ...
<?php /* |-------------------------------------------------------------------------- | Return a Collection of Objects |-------------------------------------------------------------------------- */ // collection of all users $sql = " select * from users " ; $users = User :: all(); $users = User :: get(); // name and email of all users $sql = " select name, email from users " ; $attributes = [ ' name ' , ' email ' ]; $users = User :: get( $attributes ); // collection of all users filtered by where clause $sql = " select * from users where active = 1 " ; $users = User :: where( ' active ' , 1 ) -> get(); $users = User :: where( ' name ' , ' like ' , ' J% ' ) -> get(); // collection of all users filtered by multiple where clauses $sql = " select * from users where act...
Comments
Post a Comment