Get attribute of SPAN using JavaScript

<span id='abc' email=''> xyz </span>

How to get attribute of SPAN using JavaScript


How to SPAN content or html or text using JavaScript



Learn GO Programming language by example

I do remember someone said, teach yourself the programming language for 10 years.

Detect when url changed java script or jquery

$(window).on('hashchange', function(e){
    var origEvent = e.originalEvent;
    console.log('Going to: ' + origEvent.newURL + ' from: ' + origEvent.oldURL);

Find element in DOM by mutliple classes

If you want an intersection, just write the selectors together without spaces in between.
So for an element that has an ID of a with classes b and c, you would write:

Get Or Find Element in DOM by multiple attributes, role and class

<div id="mydiv">mydiv
<div role="complementary" class="nH abC">myclass1</div>
<div role="complementary" class="nB abd">myclass2</div>

$('complementary, .abC').css('background-color','green');

Secure Connection Failed + Firefox + Selenium

FirefoxProfile firefoxProfile = new FirefoxProfile();


Webdriver  driver = new FirefoxDriver(firefoxProfile);