hi there,
has any one using Spring MVC with Jquery!
i have got a strange problem when handling Spring MVC tags with Jquery.
i used tags of spring MVC to get radiobuttons binded.
<form:form name="Form1" method="post" action="Form1.do" commandName="Page1Command">
<form:radiobutton path="group" value="TTSE" id="DevGroup_TTSE" />
<form:radiobutton path="group" value="TTDE" id="DevGroup_TTDE" />
now for some validation task i used Jquery selector as follows:
$("form:radiobutton").click(function() {
alert($(this).attr("id"));
});
now surprisingly i am getting alert with value "Page1Command" the name i have give for commandName.
then i tried with id selector for one perticular radiobutton.
$("#DevGroup_TTDE").click(function(){
alert($(this).attr("id"));
})
now i am getting the correct value as "DevGroup_TTDE"
what went wrong with this? can't we handle spring MVC tags with Jquery properly.
BTW, i am new to both technologies!
any help?
regards.