i created dynamic radio button and i add OnClick event on that and i write java script for enable and disable the button depending upon some status the event is firing from the radio button and i able to check the status when i try to enable or disable the button i am getting the error document.getelementById is null or not an object i will show you the code which is am using
Thanks For Your Reply's i tried as Amit say's but it still giving same error. i don't need ".Text" for testing i write i need to only Enable or Disable the button depending upon status condition if they is any other way please tell me i will try that also .
To Jaish Mathewsir i am creating radio button dynamically so i can't use your Suggest way but thanks for your reply
No body knows where i am doing mistake ok give me suggestion at-least how to achieve my task i will show you one image of table and its control which i am creating dynamically the image is shown below
i want to disable or enable this two button depending upon status column when user check on radio button please give me the solution to achieve my task i tried the suggestion of Mr.Amit and Mr.Sam but i got the same error please its very urgent
Amit ChoudharyRank #145 · 15.8K reputationPosted Apr 1, 2010, 12:03 AM EDT
Here Button should be inside quotes like this:
Please mark as answer if it helps.mohdazeemuddin ahmed125 reputationPosted Apr 1, 2010, 12:17 AM EDT
thanks
Sam HobbsRank #107 · 20.5K reputationPosted Apr 1, 2010, 8:28 AM EDT
Will work, but you need to use quotes for btnDecline, as Amit says.
Also note that if you want the text in a button, use:
"value")
Jaish MathewsRank #225 · 11K reputationPosted Apr 1, 2010, 9:50 AM EDT
<input type ="radio" id="r1" onclick="RadioEvent('status',this);" />
<input type ="radio" id="r2" onclick="RadioEvent('status',this);" />
function RadioEvent(Status, Button) {
Button.disabled = true;
}
mohdazeemuddin ahmed125 reputationPosted Apr 2, 2010, 10:39 PM EDT
To Jaish Mathewsir i am creating radio button dynamically so i can't use your Suggest way but thanks for your reply
mohdazeemuddin ahmed125 reputationPosted Apr 4, 2010, 10:08 PM EDT
i want to disable or enable this two button depending upon status column when user check on radio button please give me the solution to achieve my task i tried the suggestion of Mr.Amit and Mr.Sam but i got the same error please its very urgent
thanks in advance