Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container data attribute #765

Open
modemmike opened this issue Mar 20, 2021 · 0 comments
Open

Container data attribute #765

modemmike opened this issue Mar 20, 2021 · 0 comments

Comments

@modemmike
Copy link

How can I access the data attribute of the container? Even possible?

$(this).data("row_id"); does not work becuase this is the datepicker but I need to access the data attribute of the input from
<input type="text" data-row_id="**XXXX**" class="pick-date pick-date-start" >

$( ".pick-date-start" ).each(function(index) {	
			row_id = $(this).data("row_id");
			$(this).datetimepicker({        

Just results in whatever the last row ID was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant