jquery - making dynamic email input -


im trying make dynamic email input field uses autocomplete on input text field , places chosen receivers in span preceding input field. these 2 containers placed in div. div imitating input field, while span , input field not visible.

i want make smooth in email software. making div box contain selected receivers , making sure empty input field not taking space.

problem @ moment input field requires space , ends occupying last row of div. how can avoid this?

here containers:

<div class="message-userfield" ><span id="fake_to"></span><input type="text" name="auto" id="auto" /></div> 

i tried using jquery make width of input field smaller when not inputing data, input field doesn't "jump up" next span. how can make happen.

$("#auto").focus(function(){         $(this).css({width:'200px'});     });      $("#auto").blur(function(){         $(this).css({width:'10px'});     }); 

how make input field smooth , dynamic? appreciated!

are looking this:
http://jqueryui.com/demos/autocomplete/#multiple ?


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -