How to use Chrome Inspector to show the popup css for a jquery plugin -
i'm trying chrome inspector show me class names , properties used in jquery plug-in can overwrite , adjust them want. chrome inspector css window doesn't show it.
i using plugin shows popup of list items when click on textbox. see jsfiddle
$('#example-1').timeselect({ 'step': 15, autocompletesettings: { autofocus: true } });
i want change highlighted row background colour , text size there shown in following screenshot
i read in this answer see hover css in chrome inspector need check .hov style in window.
it not matter element state set to. chrome css window not show me css 2 properties trying change i.e. highlighted row font size , background colour. doesn't show me gray colour in window @ all. allows me change static font size of textbox, not text size of when textbox clicked , hover active.
i had @ javascript code on github plugin. there no reference. there no reference css or style being applied it.
summary of answer given below:
the jquery plugin creates html on dom ready. locate created html in chrome inspector.
use inspector highlight relevant html created element , take note of css class name dynamically gets inserted in html when visually highlight row.
in chrome's css panel window click
+
icon , add class name identified in step 2.view , adjust css properties specific class
in fiddle, can inspect input box (where click enter text) , watch html change when click on , off. if don't see elements highlight when open , close (which means element changing, style of display:none;
block
), can start mousing on elements in inspector.
when mouse on elements in inspector, you'll see block want light up. block want contained in bigger block, you'll have traverse block (using black arrow next open element)
you're looking <ul class="ui-autocomplete ui-front ui-menu ui-widget ui-widget-content" id="ui-id-1"...
element houses of select options.
in picture below, way found block inspect actual input "basic examples". showed me traversed input id #example-1
. since clicked somewhere else, actual options hidden, clicked on input again open them , noticed changed in inspector. so, moved mouse on elements in inspector while options box open. saw div (highlighted in gray in inspector) containing box options, traversed there.
tldr; you're going change backgrounds of .ui-menu-item
Comments
Post a Comment