How to access value based on id(Which has period in their value) attribute.
Example :
if suppose my radio button is
<form:radiobutton path="abc.def" id="abc.def" />
now how to access value of abc.def using jquery
I tried using
$('#abc.def').val()
but it’s not working.
diamondSingleStone.originalLotnumber
The selector
#abc.defwill look for an element whoseidattribute is ‘abc’ and which also has the CLASS ‘def’, since.denotes class.In short, don’t use
.in ID attributes – it will cause you problems for the above reason. If the code is unchangeable you will need to select it in different fashion: