TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mari muthu
NA
198
107.5k
how to get Parent and Child value
Jun 27 2016 1:14 AM
hi,
in this directly i can give a value for paragraph but i should use parent and child by using this only i am gonna give the value for Paragraph. please help me for that
Explain;
-----------
i want to get the Parent and Child values.buy using that in Paragrap tag i need to give some values after i click the button i tried but am not get that value("Muthu") for Para...Please help me for this
<input type="button" name="New" value="New" id="Sec">
<div id="Main">
<div id="sub">
<div id="secondsub">
<p id="para"></p>
</div>
</div>
</div>
script:
$(document).ready(function () {
$("#Sec").on("click", function () {
var getvalue = $("#Main").parent().eq(2).children().first();
getvalue.text("Muthu");
});
});
Reply
Answers (
2
)
jquery time line
high chart according to date