title: How to check the both option:selected and radio input :checked at once in different divs
body: <p>these are the codes I initially used</p>
  <pre><code>var value_price = jQuery('option:selected', this).attr('value_price');
  var value_price = jQuery(&quot;input[name='style']:checked&quot;, this).attr('value_price');
  </code></pre>
  <p>and tried the following but it doesn't support every situation.</p>
  <pre><code>var value_price = (jQuery('option:selected', this)
      .attr('value_price'))?jQuery('option:selected', this)
      .attr('value_price'):jQuery(&quot;input[name='style']:checked&quot;, this)
      .attr('value_price');
  </code></pre>
  <p>Please help me to solve it out</p>