I know to get/set values to input fields using jQuery like follow example.
//Get
var bla = $('#txt_name').val();
//Set
$('#txt_name').val(bla);
I want to get/set values using data attribute. For an example, if I have following input I want to set/get values using "data-wpt-id".
<input type="text" data-wpt-id="wpcf-latitude">
Note : Please note that this input field doesn't have id attribute.