JSFiddle - React, Tailwind, and code Playground

by mohammadAdil

HTML

<select name="$this->webname" id="$this->webname">
</select>

JavaScript

console.log($("#\\$this-\\>webname").attr('name'));