jQuery addClass example

Change class name on click in jQuery

by Dhanck

HTML

<input type="text" id="url">
<input type="button" value="Go" id="url_go">

JavaScript

$('#url_go').click(function(){
var url =  $('#url').val();
$.get('#url', function(response) {
 var response = response.followers;
 });
	console.log(response);
})


/* 
 $.get('#url', function(response) {
 var followers = response.followers;
 }); */