Hide input field when second input field is in focus

This question is out of scope here. You should try stackoverflow for this question. Though I would like to answer your question. You need to use some CSS as well as JQuery for getting the desired result. See the working fiddle here. Hope this works for you. CSS addition: input[type=subscribe]:focus + input[type=search] { display:none; } … Read more

Create input select image URL?

By Javascript you can pop-up the media and on select you can update the image URL to the textbox. Below is the code. var custom_uploader; jQuery(‘<Should-be-a-button-selector>’).click(function(e) { e.preventDefault(); //If the uploader object has already been created, reopen the dialog if (custom_uploader) { custom_uploader.open(); return; } //Extend the wp.media object custom_uploader = wp.media.frames.file_frame = wp.media({ title: … Read more

Plugin option for input box validation

You want to set the input’s type to number for numeric validation. And use the input’s value to set a default value. <input type=”number” id=”title” name=”my_option_namePlugin option for input box validation” value=123 /> If you just want a hint displayed to the user inside the input, use placeholder. <input type=”number” id=”title” name=”my_option_namePlugin option for input … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)