JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<input type="text" value="5" name="DeviceIP">
<input type="text" value="8" name="DeviceIP">

JavaScript

alert($("input[name='DeviceIP'][value='5']").val());