Sunday, September 22, 2019

php - Change the default Select option using javascript




I am on an editing post page on wordpress and have this option to create a target link:



https://www.vtxfactory.org/images/11111.jpg



The default option is "None", I want it to be the "Custom Link..." one, for that, I have the following info:



 shown has no ID




Try



$('select[name="imt_team_href"]').val("-1");

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...