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
script:
$(document).ready(function () {
$("#Sec").on("click", function () {
var getvalue = $("#Main").parent().eq(2).children().first();
getvalue.text("Muthu");
});
});
Vinay SinghPosted Jun 27, 2016, 5:13 AM
Your name
$("#Sec").on("click", function () {
var getvalue = $("p").parent("#secondsub").text();
alert(getvalue);
});
Your name
$("#Sec").on("click", function () {
var getvalue = $("p").parent("#secondsub").text();
alert(getvalue);
});
mari muthuPosted Jun 27, 2016, 1:32 AM