What I want to do is the following:
I have an input:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="text" id="5" name="">
<input type="button" onclick="x();">
I want to capture the value of the id of that input
<script type="text/javascript">
function x(){
var id2 = $("#5").id();
alert(id2);
}
</script>
That does not work, I hope you can help me.