.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!



Home >> Articles >> Javascript >> Post New Resource Bookmark and Share   

 Subscribe to Articles

How to get the values or text of textbox, CheckBoxlist, RadioButtonList, ListBox, dropdownlist in javasc

Posted By:Syed Shakeer Hussain       Posted Date: July 12, 2010    Points: 75    Category: Javascript    URL: http://www.dotnetspark.com  

In this Article you will learn how to get the values or text of textbox,CheckBoxlist,RadioButtonList,ListBox,dropdownlist in javascript.
 

Introduction

This Article explains you how to Raise Client Click Events for Server Controls

usage:

1.Attribute 'OnClientClick':-The OnClientClick property is used to sets a client side script or Method to be run when the Button control is clicked.

eg:OnClientClick ="return javascriptMethod()"

2.getElementById():-It is used to get the Elements in a from.This method takes an argument to access elements with a unique id attribute.

eg:document.getElementById ("textbox1");

3)getElementsByTagName():-This method takes in as argument the name of a tag element and returns an array of all matching tags elements found in the document.

eg:document.getElementById ("Label");

How to get the value of textbox in javascript ?

in .aspx source code


    Untitled Page
    


    
    

How to get the text of CheckBoxList in Javascript?



    Untitled Page

    





    
Apple Banana Grapes

How to get the value or text of radioButtonList in javascript?

 



    Untitled Page

    

     





    

How to get the selected value or text  of dropdown in javascript?


    Untitled Page
     


    
ASP.NET VB.NET C#.NET

How to get the text or value of ListBox in JavaScript?

 


    Untitled Page
    


    
SilverLight Ajax JQuery

 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend