We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Setting html attributes on control itself

Hi all
I am trying to set a html attribute on a drop-down list. However, it is setting that attribute on the span which contains the input.

Can anybody help me with this?

Thanks

4 Replies

AP Arun Palaniyandi Syncfusion Team December 16, 2015 02:08 PM UTC

Hi Rami,


Thanks for contacting Syncfusion support.


Through HtmlAttributes property, we will add the attributes to wrapper of input element instead input element except the following attributes disabled, required and readOnly.  So we suggest you to add the attributes to element directly by getting it from DropDownList object if it need.


The following JS Playground sample will show case the demo for the requirement.


http://jsplayground.syncfusion.com/nl1qrbq5


Please let me know if any concerns.


Regards,

Arun P



RA RA December 16, 2015 02:11 PM UTC

I was wondering if there is any way to add them directly to the input itself, by using the EJ API, for situations in which I cannot use JavaScript

Thanks


AP Arun Palaniyandi Syncfusion Team December 17, 2015 12:57 PM UTC

Hi Rami, 


Sorry for the inconvenience.


Currently, we don’t have the option for setting the html attributes on input itself so we are considering this as a usability feature. We have created an incident in your account kindly follow up the incident for further queries.  


Please let me know if any concerns.


Regards,

Arun P



RA RA December 17, 2015 01:30 PM UTC

Thank you

Loader.
Up arrow icon