Hi,
I am a newbie in Ajax, and I am trying to figure out how to pass the value of an item from my HTML form through Javascript/Ajax.
Here is the code:
<form action="" id="name">
<p><input type="checkbox" value="Weather" name="news[]"
onclick="showRSS(document.name.news[].checked)"/> Weather</p>
This is what I have in my showRSS function:
function showRSS(str)
{
alert(str);
}
This does not seem to be working, is there something I have missed here to that the value in my checkbox input would be passed through the showRSS function?
Thanks for your help.