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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -