JSFiddle - React, Tailwind, and code Playground
by mohammadAdil
HTML
<select name="$this->webname" id="$this->webname">
</select>
JavaScript
console.log($("#\\$this-\\>webname").attr('name'));
by mohammadAdil
<select name="$this->webname" id="$this->webname">
</select>
console.log($("#\\$this-\\>webname").attr('name'));