I have the following script to remove a jquery button:
var elem = $('[symbol="GOOG"][exchange="NASDAQ"][class="remove-button"]') //select the item
(elem.parentNode).remove();
The relevant html is:
<div id="GOOG" symbol="GOOG" exchange="NASDAQ" class="stockButton">
GOOG
<span symbol="GOOG" exchange="NASDAQ" class="remove-button">
x
</span>
</div>
However, nothing happens and I'm not sure why? I do something similiar on click elsewhere which works fine. The above two javascript lines I call manually in the code. Thanks.