Chakreshwar Sharma Chakreshwar Sharma - 4 months ago 5x
jQuery Question

Fetch the header of next div

I want to fetch the contents of div like header & other details on radio selected radio button.
I am doing like


By doing this , I am able to fetch the contents of plan-info div, but I want to fetch the next h3 inside it.

so, I am trying
$('input[name=subscription_plan_radio]:checked').parent().next('plan-info h3').text()

but it is giving a blank string.

below is the html code.

<div class="plan-info">
Pay Per Lead
<div class="plan-details">
<h4 class="price">
<ul class="features">
<li>Buy Unsigned Leads</li>
<li>Price per Category from $100 to 500</li>
<li>Email Notification when a New Leads is available</li>


You can use it like this