Monday, July 25, 2016

TypeError: $.get is not a function

//In scirpt
$('#suggest').keyup(function ()
{
var query = $('#suggest').value;

$.get("/search/", {suggest:query},function( data ){
$("#list").html( {% for item in search_list %}
'<li>'+{{ item }}+ '</li>'
{% endfor %} )


});


In body

<input type="text" id="suggest" >
<div id="list">
</div>

am i doing something wrong 
plz help

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f874db3a-1e19-4cef-9deb-9beed11159d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment