Skip to content

Request for Ajax with data-coloris #140

Answered by mdbassit
mircobalda asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use Javascript to retrieve the value. For example in this case:

// Retreive the color value of the field with the CSS classes "coloris" and "instance2"
let colorValue = document.querySelector('.coloris.instance2').value;

Replies: 8 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@mircobalda
Comment options

@mdbassit
Comment options

@mircobalda
Comment options

@mdbassit
Comment options

Answer selected by mircobalda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants