javascript - adding an div in autosuggest -
i implementing bsn autosuggest
can 1 tellme how can add div in result result formed
<div style="left: 347px; top: 1024px; width: 400px;" class="autosuggest" id="as_testinput_xml"> <div class="as_header"> <div class="as_corner"></div> <div class="as_bar"></div> </div> <ul id="as_ul"> <li> <a name="1" href="#"> <span class="tl"> </span> <span class="tr"> </span> <span><em>w</em>aldron, ashley<br><small>leicestershire</small></span> </a> </li> <li> <a name="2" href="#"> <span class="tl"> </span> <span class="tr"> </span> <span><em>w</em>heeler, bysshe<br><small>lincolnshire</small></span> </a> </li> </ul> <div class="as_footer"> <div class="as_corner"></div> <div class="as_bar"></div> </div> </div>
i need add diva above ul category
<div>category</div>
i tried
var tmp = _bsn.dom.createelement("div", {classname:"tmp"});
and need know how add values div using java script .....
this autocomplete system hasn't been updated since 2007. think it'd wise try that's more date. use jquery? i'd recommend: http://docs.jquery.com/plugins/autocomplete, handles work you.
an advantage using jquery can utilize google's cdn: http://css-tricks.com/google-cdn-naming/
there's high chance visitor won't have download jquery cause it's been used on site.
Comments
Post a Comment