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

enter image description here

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:

  1. the jquery plugin creates html on dom ready. locate created html in chrome inspector.

  2. use inspector highlight relevant html created element , take note of css class name dynamically gets inserted in html when visually highlight row.

  3. in chrome's css panel window click + icon , add class name identified in step 2.

  4. 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. enter image description here

tldr; you're going change backgrounds of .ui-menu-item


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -