css selector or xpath selector

I have a div in the code. I dont want to display it or delete it. Either is ok

the following is the code:

  <div addthis:url="http://sampletest.com/?p=2748" class="addthis_toolbox addthis_default_style " addthis:title="Clarifying the event "></div>

this is from wordpress page.

I dont know in css how to select addthis:url="http://sampletest.com/?p=2748" and addthis:title="Clarifying the event " because class="addthis_toolbox addthis_default_style is not unique thing to slect

I tried using javascript

    element = document.evaluate('//div[@addthis:url="http://sampletest.com/?p=2748"]',

but it selects none.


It has a class. All you have to do is target that class in your CSS.

The class is addthis_toolbox, so the following will hide the div and its contents.

.addthis_toolbox {
    display: none;

Just make sure this class isn't used in other elements that you don't wish to hide, otherwise they'll be hidden as well.

Need Your Help

Paste Copied File From Clipboard To File System

vba excel-vba vb6 excel

If the user has copied a file to the clipboard in the file system, I would like the user to return to an Excel spreadsheet and click a button. The code behind this button should paste this file to a

python sklearn cross_validation /number of labels does not match number of samples

python scikit-learn cross-validation

Doing a course on machine learning, and I want to split the data into train and test sets. I want to split it up, use Decisiontree on it for training, and then print out the score of my test set. The