jQWidgets Forums

jQuery UI Widgets Forums General Discussions Lists ComboBox jqxComboBox, I’m I missing something ?

This topic contains 1 reply, has 1 voice, and was last updated by  chemouri 12 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • chemouri
    Member

    Dear Support,

    Could you please answer following questions?

    Either for jqxComboBox or  jqxInput

    1- How can I change font family and size (programmatically or using css) ?

    2- How can I select text in combobox when the user click it ?, like using:

    $(‘#jqxComboBox’).click(function() {
    $(‘#jqxComboBox’).select();
    });

    Thank you.

    Mohammed.


    chemouri
    Member

    Hello Again,

    I did following workaround 🙂 :

    function jqxComboBox_select(id) {
    $('#dropdownlistContent' + id).parent().find('[type="textarea"]').select();
    }
    function jqxComboBox_font_size(id, size) {
    $('#dropdownlistContent' + id).parent().find('[type="textarea"]').css('font-size', size + 'px');
    }
    function jqxComboBox_font_family(id, font) {
    $('#dropdownlistContent' + id).parent().find('[type="textarea"]').css('font-family', font);
    }

    We can call the like:

    jqxComboBox_select('mycomboid'); // select all text
    jqxComboBox_font_size('mycomboid', 26); // font-size: 26px;
    jqxComboBox_font_size('mycomboid', 'Lucida Sans Unicode'); //font-family: "Lucida Sans Unicode";

    Best Regards,
    Mohammed.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.