Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Expanded, etc.
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 110
  • 134

This works in IEInternet Explorer, SafariSafari, ChromeGoogle Chrome , and FirefoxFirefox:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<div class="crazy_idea" thorn_in_my_side='<table border="0">
 <tr>
 <td ><span class="mlayouttablecellsdynamic">PACKAGE price 65ドル.00</span></td>
 </tr>
 </table>'></div>
<script type="text/javascript">
 alert($(".crazy_idea").attr("thorn_in_my_side"));
</script>

This works in IE, Safari, Chrome and Firefox:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<div class="crazy_idea" thorn_in_my_side='<table border="0">
 <tr>
 <td ><span class="mlayouttablecellsdynamic">PACKAGE price 65ドル.00</span></td>
 </tr>
 </table>'></div>
<script type="text/javascript">
 alert($(".crazy_idea").attr("thorn_in_my_side"));
</script>

This works in Internet Explorer, Safari, Google Chrome , and Firefox:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<div class="crazy_idea" thorn_in_my_side='<table border="0">
 <tr>
 <td ><span class="mlayouttablecellsdynamic">PACKAGE price 65ドル.00</span></td>
 </tr>
 </table>'></div>
<script type="text/javascript">
 alert($(".crazy_idea").attr("thorn_in_my_side"));
</script>
Source Link

This works in IE, Safari, Chrome and Firefox:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<div class="crazy_idea" thorn_in_my_side='<table border="0">
 <tr>
 <td ><span class="mlayouttablecellsdynamic">PACKAGE price 65ドル.00</span></td>
 </tr>
 </table>'></div>
<script type="text/javascript">
 alert($(".crazy_idea").attr("thorn_in_my_side"));
</script>
lang-js

AltStyle によって変換されたページ (->オリジナル) /