api - using imdbapi.com to popluate textboxes with jquery/ajax -


i'm trying movie details imdb according title of movie, using imdbapi.com's api this.

now seems returning json fine, can't seem populate textbox , can not life of me work out why not populating.

can please check out , see if can shed light?

i have tried :

function getdata(title) {     $.getjson('http://www.imdbapi.com/?t=' + title,       function (data) {           $('#textbox2').text(data.plot);       }     ); } 

$('#textbox2').val(data.plot);


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -