This is the node captured by the js you are currently executing. In this way, you can capture the id, name or tag name in js without writing methods such as document.getElement, saving some trouble. Usually obj is used instead.
Copy the code code as follows:
<input type="button" id="tianjia" value="Save" onClick="nullCheck(this)"/>
<script>
function nullCheck(obj)
{
......//Write the code for the function you need here
}
</script>
<input type="checkbox" name='agentType' id="exclusiveAgenter" value="exclusive" onchange="clickAgenter(this)">
function clickAgenter(obj){
if($(obj).attr("checked")=="checked"){
$("[name='agentType']").removeAttr("checked");//Cancel all selections
$(obj).attr("checked","checked")
}
}