Posted: 7/21/2011
Hi All,
I had attached the windows user control into the webpage using OBJECT tag. I had created the property named INDIA, when i try to access the userCtrl.innerHTML its giving a result like follwoing pattern
<param name = "I" Value="India"><param name ="A" value="Australia"><param name="b" value="brazil">
Now i want to the value INDIA alone. How to fecth this via javascript.
var myValue=$('param[name=I]').attr('Value'); alert(myValue);
Posted: 7/22/2011
Hi Ragav,
<object id="uxCtrl" > ->Embedde Windows User Control
If i put, uxCtrl.innerHTML,
its returning
<param name='I' Value='India'><param name='S' Value='Singapore'>
Have to fecth india only . How to do using JAVASCRIPT ? ?
Posted: 7/26/2011
Hi SS SS,
Did you tried Raghav's example? It should work even if you don't have found the InnerHTML.Another way would be this:
$(function() { var vInnerHtml = $("#uxCtrl").find("param[name='I']").attr("Value"); alert(vInnerHtml); });