activate the select by clicking on the block

How to activate select if i click on block? I found several options on the Internet, but none of them works.Where is the mistake?


<li name='click' class="nav-link" id="demoShowSelected">                                     <img class=" ukr"  src="{{ URL::asset('images/ukraine.svg')}}">                                     <img class=" eng" src="{{ URL::asset('images/united-kingdom.svg')}}">                                     <img class=" rus" src="{{ URL::asset('images/russia.svg')}}">                                     <select  name="select" id="selectLaung">                                         <option value="ukr">Українська</option>                                         <option value="rus">Русский</option>                                         <option value="eng">English</option>                                     </select>                                 </li> 


$  (document).on("click", "[name='click']", function () {      var myEvent = document.createEvent("MouseEvents");     myEvent.initMouseEvent("mousedown");     $  ("[name='select']")[0].dispatchEvent(myEvent);  }); 

magento2 product grid checkbox column ascending disacceding order randomly select then automatic save value uncheked

$ this->addColumn( ‘in_product’, [ ‘type’ => ‘checkbox’, ‘field_name’ => ‘in_product[]’, ‘align’ => ‘center’, ‘index’ => ‘entity_id’, ‘filter_index’ => ‘entity_id’, ‘values’ => $ this->getSelectedProducts(), ] );

UI to select different tools for right and left click

I’m working a specialized paint web application (for designing Minecraft structures). I would like for the user to be able to assign different tools to the left and right mouse buttons. (I don’t intend to override the default right-click behavior other than this.)

I have a traditional tool palette. I’ve been experimenting with a way to indicate that the user has selected one tool for the left mouse button and another tool for the right mouse button:

enter image description here

The left and right tool indicators are differentiated in three ways:

  • Position (left vs right)
  • A tiny L or R.
  • Contrasting (though meaningless) colors.

In order to select a tool, the user clicks on the tool icon with either the left or right mouse button, and that button will be bound to that tool.

The right-click tool functionality is (very) convenient, but not essential. Users who can’t or don’t want to right-click can use the left button exclusively. In addition, when the cursor is over the canvas, then the appropriate cursor icon for the left tool will be displayed unless the user is actively using the right tool.

Does this UI make sense? I’m not nearly at the stage of user testing yet, but I wanted a sanity check because I don’t think I’ve seen this pattern before. An alternative would be to have a separate tool palette for right clicking, but I’m concerned that this could be confusing and inconvenient.

Receive Apple Watch messages notifications from select contacts only

Is it possible to receive message notifications on an Apple Watch only from selected contacts?

I’ve tuned my Watch notifications so that I basically only get notified of all calendar and call events, but I’d like to also be able to receive messages from some selected contacts.

On a related note, I also wonder if it’s possible to raise to view a notification on the Watch if I hear a notification from my iPhone. This way I can leave the phone in another room and not be bothered by distractions, but should I hear something I can quickly view the notification on my Watch.

Avro is installed but not showing up language selection list to select on Ubuntu 18.04.2 LTS

I could successfully installed and used Avro in my previous Ubuntu 18.02. This installation problem arises in Ubuntu 18.04.2 LTS.

To install Avro, I am following the instructions from this thread:

I have followed each step as instructed. I think the main problem occurs of my installation is in Manage Installed Languages. In Manage Installed Languages, after adding Bangla language package, I am losing all Bangla language selection options in language choose list.

The below mentioned pictures visualize the result of Bangla language package installation and result of the installation:

Bangla Language Package has been installed

After installing the language, the language selection list look like this: Language selection list after Bangla language package installation

I have restart the ibus as instructed. ibus restart

I have tried to follow few threads here in Aksubuntu to solve my installation problem but in vain.

I have specially followed the following threads:

  • Installing Avro in 18.04 LTS
  • How to install ibus-avro in Ubuntu 16.04 LTS?

I have also tried to install from Github, from this repository: where the instruction are locate here:

Where could I possibly have done wrong during my Avro installation, so that this problem occurs?

Magento 2.3 How to Auto Select Swatch Option Values if Only One Exists in Product View

I’m trying to have swatch option values selected on the Product View page, if only one value exists.

also i have try this reference but not working for me

like :

enter image description here

Note: when one swatch value available then this value is auto selected and remove validation message

Select splat in a subquery

Obviously, 'select *' is never a good idea.

HOWEVER, I have taken a job with an org that allowed this cancer to spread.

They have huge queries, using select * as SUB-QUERIES, when the coder only needed 3 or 4 columns.

 select t.field1, t.field2, t.field3, x.field4 ...    from table t    left join (select * from table where .... ) x      on x.field5 = t.field5     left join (select * from table where .... ) y      on y.field6 = t.field6    left join (select * from table where .... ) z      on z.field7 = t.field7  

Performance on this beast is a dog.

The databases we pull from we don’t own, so I don’t have rights to get an estimated or actual execution plan.

Before I start rewriting these queries, is the query optimizer on the M$ SQL Server smart enough to translate the splat into just the needed columns? Or do I start targeting one query a day at lunch?

Thank you for your time and consideration.

Iterando select dinamico em adicionar e remover linhas

Estou desenvolvendo um adicionar e remover linhas como na imageminserir a descrição da imagem aqui

O primeiro select vem de um database com PHP e os que são adicionados posteriormente dinamicamente vem através do getJSON. Está funcionando porém estão sendo feitas várias requisições sem parar desse getJSON e o select fica acumulando as mesmas informações, estou fazendo da seguinte maneira:

$  (document).bind('DOMSubtreeModified', function () {    $  .ajax({       type:'post',         dataType: 'json',         url: 'json/list_programs',       success: function(dados){         var programs = '';         $  .each(dados, function(key, value){             programs += '' + value.program_name + '';         });         $  ('.list_programs').append(programs);        }     });  }); 

InnoDB Non Locking Select Statement Using db_query in Drupal 6

From a thread on stackoverflow, I found a way to implement Select query in InnoDB table without locking.

The example statement given there was this:


Now if I want to implement a similar statement using db_query() can I do so by issuing three consecutive calls like this


Note: db_query doesn’t support multi line statements on Drupal 6.

Webform conditional select options based upon another element’s state

Say there are two select elements with dynamic options (via an options alter hook, sourced from an external resource): A and B. There is also a datasource that provides a relationship that determines the options in B that should shown when a particular selection in A is chosen.

The source data for each element in addition to the relationship data source is not able to be predicted or controlled by Drupal.

For example:

A Options at a particular instant

| name | code | | Group 1 | 1 | | Group 2 | 2 | | Group 3 | 3 | 

B options at a particular instant

| name | code | | Thing 1 |  1 | | Thing 2 | 2 | | Thing 3 | 3 | 

The relationships at any given time.

| group | thing | | 1 | 1 | | 1 | 2 | | 1 | 3 | | 2 | 1 | | 2 | 2 | | 3 | 3 | 

So if group 1 is selected for A, then things 1, 2, and 3 should be options for B

If group 2 is selected for A, then things 1 and 2 should be options for B

If group 3 is selected, then only thing 3 should be an option for 3.

We are currently implementing this requirement through the core FAPI and ajax callbacks, but would like to covert it to use Webforms.

What would be the recommended approach to take in order to solve this with Webforms?