Jump to content

goodtech

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by goodtech

  1. thanks for your reply

    look this link

    http://tutorialzine.com/2011/11/chained-ajax-selects-jquery/

    class SelectBox{	public $items = array();	public $defaultText = '';	public $title = '';		public function __construct($title, $default){		$this->defaultText = $default;		$this->title = $title;	}		public function addItem($name, $connection = NULL){		$this->items[$name] = $connection;		return $this; 	}		public function toJSON(){		return json_encode($this);	}}

    ---------------------

    so how can i use link on this select ?

  2. OMG I forgot :facepalm:

    guys just u need change like bottom

    $carone = '<a href="#">this car is number one</a>';$caseSelect = new SelectBox('only for test','');$caseSelect->addItem($carone)           ->addItem('car2')           ->addItem('car3')           ->addItem('car4');
  3. hi guys i have this code

    ---------------------------

    $caseSelect = new SelectBox('only for test','');$caseSelect->addItem('car1')           ->addItem('car2')           ->addItem('car3')           ->addItem('car4');

    ---------------------------

    i want to know , how can i add link (http...) to this option on select

     

     

    thanks in advance

×
×
  • Create New...