javascript - html text-input ?no value or text attribute -


hello @ stack overflow, i've searched in-depth no avail.

background: i'm developing web application using visual web developer express 2010, , using bootstrap css.

i have text-input form control on site user enter search query.

problem: text-input form control has no value or text attribute. when there value/text typing in.

image of textbox , html code

i planned on javascript changing text in textbox selection of list-item.

if can provide other information or code, please let me know & update.

my theory bootstrap javascript & jquery libraries interfering, haven't clue start probing.

value attribute on dom node's in-memory javascript representation, has getter retrieve current value of input , setter update on-screen, not in computed page. however, html attribute value , in-memory parameter not kept in sync default. is, computed html not keep track of user has typed, value javascript attribute does. can go ahead , update input using like:

$(input).val(somelistvalueorwhatever) 

or, de-jquery-ified:

input.value = somelistvalueorwhatever 

and element update on-screen fine. bootstrap , jquery don't interfere.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -