How can I remove HTML elements with JqLite or javascript -
how can remove following text 'search:' jqlite or original javascript?
<label> search:<input type="text"> <label> update
i didn't explain question clearly. html elements created angular directive can manipulate dom jqlite or js maybe. , attributes of input may change can't replace child nodes of label new input
please try this
<html>  <body onload="remove()">     <label>         search:         <input type="text" id="search">     </label> </body> <script type="text/javascript"> function remove() {     document.getelementbyid('search').remove(); } </script>  </html> 
Comments
Post a Comment