I want to send the selected item value along with the some attribute (stud_name) value.
Is there any functionality in PHP to do so?
Here is the example one.
just combine the value and the stud_name e.g. 1_sre and split the value when get it into php. Javascript seems like hammer to crack a nut. N.B. this method assumes you can edit the the html. Here is what the html might look like: