I am using JAVASCRIPT
I am trying to figure out something from my homework.
I have to create a search for books library, and I want to know how can I have radio buttons and then pass its values to a Onclick button or submit button.
for example i have this function:
function searchByISBN() //Gets a book by its ISBN
{
var bookNumber = document.getElementById("isbn").value;
var book = getBookByIsbn(bookNumber);
showBooks(book);
}
then I have a radio buttons like this (sorry about this mock up):
[text box. Where the user Enters information about the book]
Isbn X
author X
title X
[go button]
so If I select search by Isbn, How can i pass my function above mentioned to the go button.
thank you very much