Jump to content

get element by id with particular value


Pain

Recommended Posts

Hi.

 

I want to get an element by id with a value, instead of just id.

 

<input name="select_one" type="radio"  value="METRO" id="radio" onClick="if(this.checked) document.getElementById('service14').disabled=true;" />
 
so here instead of disabling an element with id 'service14', i would like to disable an element with that id AND a value (let's say 'abc').
 
What do i need to change in that line?
 
Thank you!
 
Link to comment
https://forums.phpfreaks.com/topic/280430-get-element-by-id-with-particular-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.