b_suneetha Posted March 6, 2007 Share Posted March 6, 2007 hi guys,,,,i am new 2 thz javascript,,,, i have 2 doubts plz clarify them , itz urgent-------i have a small doubt in thz,,,,in the first page all the details related to the category will be displayed. if i want to edit the category then i will check a check box,now if i click on edit button the details of the checkbox that i had checked should come ...Ex: if i checked on java category then, if i want to edit the details then i will click on edit button here it should display me the corresponding name and description that i had inserted in the category database.the category database is as follows:category(Id, name,description) Link to comment Share on other sites More sharing options...
pulpfiction Posted March 6, 2007 Share Posted March 6, 2007 As you have mentioned about database, you must be using some server scripting to create the checkboxes, in that assign "ID" [from database] to "value" attribute of checkbox. then you can use javascript to get that value. assuming ID as identity you can get any information from database....<input type="checkbox" value="ID from database"........ />Code to get checkbox value using javascript http://www.webdevelopersnotes.com/tips/htm...a_checkbox.php3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now