EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on December 04, 2014, 01:06:48 AM



Title: cannot select textbox by name
Post by: devnull on December 04, 2014, 01:06:48 AM
I am unable to select / change the text value or text by selecting the textbox's name:

Code:
<input class="easyui-combobox data-options="onSelect:function(rec){ $('input[name=TEXT_BOX]').textbox('setText',rec.value);}">



Title: Re: cannot select textbox by name
Post by: jarry on December 04, 2014, 07:54:22 AM
Please prevent from selecting a textbox by name. If you really want, use the 'textboxName' attribute instead.
Code:
$('input[textboxName=TEXT_BOX]').textbox('setText',rec.value);


Title: Re: cannot select textbox by name
Post by: devnull on December 07, 2014, 07:41:15 PM
Hi;

This has broken several pages that were previously working and really needs to be fixed.

As you know, when using forms, the key field is the input name, and to now have to give a name and an ID to every form element is just not practical

Thanks