[jQuery] bassistance autocomplete and two fields
I'm trying to use the autocomplete from here http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ I have two fields in my database table: id name In my form i need to be able to inform id and return the name or inform the name and return id. Is there some example around ? Ty :)
[jQuery] Re: What is wrong ?
Fixed. :) The problem was with the way on how i build the unordered list (i'm using jinja2 templates) and some issues with css. Ty. On 15 jan, 20:09, Giuliani Sanches giulianisanc...@gmail.com wrote: I have the jquery working fine ( $(a).click to show an alert messages do the job) but i can't get the treeview plugin to work. My html code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html head title/title link rel=stylesheet type=text/css href=/static/css/style.css script type=text/javascript src=/static/js/jquery.js/script script type=text/javascript src=/static/js/jquery.treeview.js/script script type=text/javascript $(document).ready(function(){ $('#treemenu').treeview(); }); /script /head body div class=body h1Bem vindo ao controle de frota/h1 div id=mainmenu a href=/Home/a /div div id=appmenu ul id=treemenu li Cadastros /liul lia href=/localidades/listar/estado Estados/a/li lia href=/localidades/listar/cidade Cidades/a/li/ul /ul /div p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec orci nulla, mollis sed, ultricies non, viverra nec, risus. Nam luctus, pede in aliquam ultrices, massa mauris pretium nunc, tincidunt lacinia mauris augue dictum eros. Aenean eleifend. Donec eget nulla eu nulla rutrum viverra. Morbi pulvinar sollicitudin justo. Sed condimentum. Vestibulum consectetur neque. Pellentesque odio. Curabitur ut pede. Nam fermentum mi eget lacus. /p /div /body /html Ty.
[jQuery] [treeview] What is wrong ?
I have the jquery working fine ( $(a).click to show an alert messages do the job) but i can't get the treeview plugin to work. My html code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html head title/title link rel=stylesheet type=text/css href=/static/css/style.css script type=text/javascript src=/static/js/jquery.js/script script type=text/javascript src=/static/js/jquery.treeview.js/script script type=text/javascript $(document).ready(function(){ $('#treemenu').treeview(); }); /script /head body div class=body h1Bem vindo ao controle de frota/h1 div id=mainmenu a href=/Home/a /div div id=appmenu ul id=treemenu li Cadastros /liul lia href=/localidades/listar/estado Estados/a/li lia href=/localidades/listar/cidade Cidades/a/li/ul /ul /div p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec orci nulla, mollis sed, ultricies non, viverra nec, risus. Nam luctus, pede in aliquam ultrices, massa mauris pretium nunc, tincidunt lacinia mauris augue dictum eros. Aenean eleifend. Donec eget nulla eu nulla rutrum viverra. Morbi pulvinar sollicitudin justo. Sed condimentum. Vestibulum consectetur neque. Pellentesque odio. Curabitur ut pede. Nam fermentum mi eget lacus. /p /div /body /html Ty.