Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

demo

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
   $("[data-role=choice]").click(function() {
      var selectedEl = $( this );
      selectedEl.siblings( "[data-selected=1]" ).removeAttr("data-selected");
      selectedEl.attr("data-selected", "1");
   });
});

</script>
<style>
div[data-role="choice"][data-selected="1"] {
    background:red;
}
.selected { 
    color:red; 
}
.highlight { 
    background:yellow; 
}
</style>
</head>
<body>
<div data-role="control" data-type="radio" data-hash="0000000a" data-type-id="18" data-colspan="20" aria-labelledby="checkbox-0000000a-acc radio-0000000a-clearable-button-acc checkbox-0000000a-error-acc checkbox-0000000a-instr-acc" data-is-side-by-side-layout="1" data-renderer-type="tln" data-id="50460682" data-is-active="1"><label data-role="label" id="radio-0000000a-acc" data-i18n-text="control_label_50460682">What do you think of the Notifications panel?</label><dt data-role="instructions" id="radio-0000000a-instr-acc" data-is-empty="1" data-i18n-text="control_instructions_50460682"></dt><div data-role="input-row" data-is-first-row="1" data-is-last-row="1" data-fill-colspan="20"><div data-role="choice"><label data-role="choice" id="radio-0000000a0"><input type="radio" id="0000000a_0" name="c_0000000a" value="<img src=&quot;https://s3-us-west-2.amazonaws.com/userdata123/www/imagefields/50460/50460833.png?_=1550125942268&quot; align=&quot;center&quot; width=&quot;34px&quot; height=&quot;34px&quot;>" data-index="0" data-role="i123-input"><label data-role="radio" for="0000000a_0" aria-labelledby="radio-0000000a0" role="radio"></label><span data-role="option-text" data-i18n-html="control_label_50460682_choice_0" data-skip-markdown="true"><img src="https://s3-us-west-2.amazonaws.com/userdata123/www/imagefields/50460/50460833.png?_=1550125942268" width="34px" height="34px"></span></label></div><div data-role="choice"><label data-role="choice" id="radio-0000000a1"><input type="radio" id="0000000a_1" name="c_0000000a" value="<img src=&quot;https://s3-us-west-2.amazonaws.com/userdata123/www/imagefields/50460/50460834.png?_=1550125947041&quot; align=&quot;center&quot; width=&quot;34px&quot; height=&quot;34px&quot;>" data-index="1" data-role="i123-input"><label data-role="radio" for="0000000a_1" aria-labelledby="radio-0000000a1" role="radio"></label><span data-role="option-text" data-i18n-html="control_label_50460682_choice_1" data-skip-markdown="true"><img src="https://s3-us-west-2.amazonaws.com/userdata123/www/imagefields/50460/50460834.png?_=1550125947041" width="34px" height="34px"></span></label></div><div data-role="choice"><label data-role="choice" id="radio-0000000a2"><input type="radio" id="0000000a_2" name="c_0000000a" value="<img src=&quot;https://s3-us-west-2.amazonaws.com/userdata123/www/imagefields/50460/50460837.png?_=1550125921573&quot; align=&quot;center&quot; width=&quot;34px&quot; height=&quot;34px&quot;>" data-index="2" data-role="i123-input"><label data-role="radio" for="0000000a_2" aria-labelledby="radio-0000000a2" role="radio" aria-checked="true"></label><span data-role="option-text" data-i18n-html="control_label_50460682_choice_2" data-skip-markdown="true"><img src="https://s3-us-west-2.amazonaws.com/userdata123/www/imagefields/50460/50460837.png?_=1550125921573" width="34px" height="34px"></span></label></div><div data-role="choice"><label data-role="choice" id="radio-0000000a3"><input type="radio" id="0000000a_3" name="c_0000000a" value="<img src=&quot;https://s3-us-west-2.amazonaws.com/userdata123/www/imagefields/50460/50460835.png?_=1550125934517&quot; align=&quot;center&quot; width=&quot;34px&quot; height=&quot;34px&quot;>" data-index="3" data-role="i123-input"><label data-role="radio" for="0000000a_3" aria-labelledby="radio-0000000a3" role="radio" aria-checked="true"></label><span data-role="option-text" data-i18n-html="control_label_50460682_choice_3" data-skip-markdown="true"><img src="https://s3-us-west-2.amazonaws.com/userdata123/www/imagefields/50460/50460835.png?_=1550125934517" width="34px" height="34px"></span></label></div><div data-role="choice"><label data-role="choice" id="radio-0000000a4"><input type="radio" id="0000000a_4" name="c_0000000a" value="<img src=&quot;https://s3-us-west-2.amazonaws.com/userdata123/www/imagefields/50460/50460814.png?_=1550126012364&quot; align=&quot;center&quot; width=&quot;34px&quot; height=&quot;34px&quot;>" data-index="4" data-role="i123-input"><label data-role="radio" for="0000000a_4" aria-labelledby="radio-0000000a4" role="radio" aria-checked="true"></label><span data-role="option-text" data-i18n-html="control_label_50460682_choice_4" data-skip-markdown="true"><img src="https://s3-us-west-2.amazonaws.com/userdata123/www/imagefields/50460/50460814.png?_=1550126012364" width="34px" height="34px"></span></label></div></div><label data-role="error" id="radio-0000000a-error-acc" data-is-empty="1"></label></div>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.