$(function(){
$('body').delegate('[href^=#tab]', 'click', function(){
alert($(this).attr('id'));
});
$('a#2').trigger('click');
});
class Dream
{
private $mydream;
private $findDream;
private static $self = null;
public static function _self()
{
if(is_null(self::$self)) {
self::$self = new self;
}
return self::$self;
}
public static function whichDream()
{
return self::_self()->findDream();
}
public function findDream()
{
echo 'Test';
}
}
Dream::whichDream();
var string_from_server = '[{"id":"1","creation_date":"1449957335","delivery_address":"Kyiv, Amosova, 10","Seller_id":"1","Courier_id":"1","package_cost":"1000","delivery_cost":"100"}]';
var string_to_object = JSON.parse(string_from_server);
console.log(string_to_object);