Below declaration of $. is meant to be a javascript variable ?
I understand how to use $ for selectors
$('#Text').click(function () {
$('#Text').css('color', 'red')
});
But when I declare variable I was used to declare that as var x = function(){}...
What this notation means "$." is a jquery way of declaring variables ?
$.searchTwitter= function(){
$.ajax({
url:"http://search.twitter.com/search.json",
data:{
q:'dogs'
},
dataType:'jsonp',
success:function(results){
console.log(results);
}
});
};
$.searchTwitter();