I want to print the text box value which id having dot(.)s.
Ex:
<input type="text" id="abc.xyz" value="Hiii"/>
How to print this value using jquery.
I want to print the text box value which id having dot(.)s.
Ex:
<input type="text" id="abc.xyz" value="Hiii"/>
How to print this value using jquery.
You need to Escape the dot.
$('#abc\\.xyz').val();
You can also do this using below,
$("input[id='abc.xyz']")
use \\
to escape .
operator since it is a class selector in jquery,
try this..
$("#abc\\.xyz").val();